Revert "Move templates to layout, may be a bad idea"

This reverts commit 35809ccef457501c1e98e11263691d69c03c8db1.
First single page app view working
Move init function out of appplication.js