Moved HTTP procesing into its own class that will make it easier to issue multiple requests to the server