Wrapper around AFNetworkin library to provide seamless interfaces for different OSs