Authentication, newline-delimited batches, more tests

- Support for basic authentication.
- Support for serializing batches as either arrays or newline-delimited.
- More tests for the HttpPostEmitter and for configuration.
- Fixed some log messages.