lost a bunch of messages due to corrupted git repo. adds fixes to client and event hashing and a bunch of tests