adding routeProvider support, a few register and login pages, they are not functional yet
moved register file to templates