Added error catching on bad client messages that don't parse as JSON. Also added some extra code to actual event messages to make it easier to pull them out of the logs, to avoid having to do #29 for now.
Fixed #2.