A secure, scalable and versatile multi-layer client–server architecture for remote intelligent data processing