Output logstash-friendly JSON by default.

- Replace field 'timestamp' by '@timestamp'
- Add explicit '@version' field for the used logstash schema
Add documentation and bump version (v0.4.0).

- Match README with the actual API.
- Add inline docs.
- Refactor.