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.
Issue created THINK-106