Fix thrift negative integer handling.

Use the node-int64 package to handle serializing/deserializing
64-bit signed integers. Also, you will now get an error if you
try to fetch out integer values that would lose precision in
javascript.

Fix 32-bit signed int serialization also (was using writeUInt32BE
instead of writeInt32BE).