Use Handlebars for HTML templates

Include templates for Media, Categories and Embed code
Removed unused rewrite method