Add JSON gem dependency
Add Rails-specific methods
Merge pull request #1 from louismullie/master

Make gem compatible with non-Rails Ruby frameworks