Parser now deals with potentially truncated input
Add support for node 0.8
Trivial changes