Use signed ints instead of unsigned ints

This resolves #14

The kafka protocol dictates the use of signed ints, using unsigned ints causes some parsing errors. Most notably if the key in a message is null.

There are also some additional minor fixes included:
- Removed a top level `var i=0;` that wasn't in use
- Added the message `key` value to the emitted message object