Adding template rendering code
Added global template so I can factor out stuff in errors
Use the base path that's passed in, clean up whitespace
Factor out template handling into its own file
Option descriptors
Reindent directory list template