refactor client base routes, use hbs templating to generate index.html