Address recent security vulnerabilities in rails and json.

Specifically:

* CVE-2013-0269
* CVE-2013-0276
* CVE-2013-0277