Added a HTTP wrapper and more verbose logging to API.