Upgrade the things

Update Rails, rack and JSON to avoid recent security vulnerabilities.