Various refactorings and such
Renamed templates to match views; changed assets revisions to use git hash