Move handlebars templates to separate template files

- do includes for index
- make base check for hb