Reorganized some constants into a single JSON file

Eventually all the constants shared between Ruby, JS, and CoffeeScript can be shared through files like these.