Make HTTP headers sent in Api::http editable

Added public variable $http_headers to Api.php and changed Api::http to use the headers from the variable.
Merge pull request #3 from juuga/master

Make HTTP headers sent in Api::http editable