Implement Xid event
Introduce a new class BufferReader, to simplify the unpack process
Add .jshintrc, jshintify the code