Convert all exceptions thrown in deserializeMessage to InvalidMessageError.
Convert all exceptions thrown in deserializeMessage to InvalidMessageError.

Fixes #19.

(Recommitting after this change was accidentally reverted by 3b8125d.)

CheeseLord/warts,CheeseLord/warts