Added template folder. Copied routing and page generation code from heroku's example.