Support for HTTP POST

Added support for HTTP POST.
Refactored HTTP functions to use common methods for initialization, response and termination.
Add support for setting HTTP user-agent
Add HTTP POST to example
Merge pull request #8 from darrensi/master

Support for HTTP POST