Added a HTTP wrapper and more verbose logging to API.
Merge branch 'development' into issue38
Solved issue #38, but may re-open similar issues in future.