Address multiple security vulnerabilities in Rails and JSON.

Vulnerabilities addresssed:

1. CVE-2013-0269
2. CVE-2013-0276
3. CVE-2013-0277