add an error mako template, and some other fixes
Merge pull request #85 from clovis/master

Add error template