THINK-104 TRN

This branch tidies up a lot of the old way rails was setup to deliver the app. See my commit notes for more info.
Putting raw js in the manifest file is discouraged. That's why it was in a separate application/site.js file. If you don't like the filename you can change it, but putting the js here isn't the answer.