set views directory for the app
Merge pull request #13 from ggramlich/master

explicitly set the views parameter for the express app
Export sub-app as a middleware with a template app injected