Make code more consistent & idiomatic

* Use a consistent json-mode- prefix for all identifiers
* Allow prefix argument with beautify command
* Remove unnecessary declaration of hook variable
Use rx for regexps, and properly handle embedded escaped chars in strings
Merge pull request #16 from purcell/master

Make code more consistent & idiomatic