Code cleanup for v0.4

I am preparing a cleanup version (0.4)

- Drops support for node version 0.6 and lower.
- Use built-in buffer functions that are available in node 0.8 and up.
- Upgrade development dependencies to use latest versions.

Anything else we can clean up?

@runk @diwu1989