Make it Rails

This is quite a dramatic PR. It resolves #35, converting the project to Rails for the reasons outlined in that Issue.
Good call. I didn't look into JSON builders. I'm also too OCD about markup to trust the XML builder (which is why I rolled those by hand), but that may be due to a lack of understanding.