Emit catchable error events instead of throwing an exception when malformed frames come in
Make error events encapsulate an Error object so node is a bit happier
Merge pull request #27 from sorear/topic/handle-malformed-input

Make errors emit actual error objects and catch malformed input data to unpack. Thanks @sorear!