Move templates and fix handlebars.js compatbility

Change-Id: Ic346b6e24b8792a4a0a32aa57aacd83f0e8dc673
Merge "Move templates and fix handlebars.js compatbility" into frontend-rewrite