Factored out http request data handling to its own class.
Added basic post function.
Factored out logging to an interface which is different for standalone and android versions.

Added sense of verbosity to standalone version.