Some attachment improvements

This pull request contains:
- Possibility to set custom filename/mimetype for attachments (Issue #15)
- Config parameter for the timeout (Issue #16)
- Fix that setApiKey in HTTPClient actually updates the HTTP header

Also added tests for the attachment changes and everything is backwards compatible.

Hope you can pull this in!