router code

Adding the code for setting up routers for template types and adding additional routes.