Replace dummy Rails app with unit tests

Moved this out to its own pull request since it is noisy.