Switch to MultiJson and Rescue all errors

Switches to `MultiJson`, to avoid issues with JRuby. Fixed a few bugs in the process too.

refs #5, #10