Fixed bug where headers where being reused between requests

The reuse of headers was especially problematic for the Content-Length header which is only recalculated when it wasn't already set.
Added missing comma to prevent apiConfig from becoming unintentionally global.
Merge pull request #59 from gabrielf/issue-58

Issue #58 fixed. Using clone on options.headers.