Move connect-domain to after routes, fix grunt handlebars race condition