Template error handling

Tightened up the error handling so unhandled errors do not take down the node process. 

All errors result in a HTTP 500, and the stack trace is logged on the server. Eventually we can make a nice generic error page, but for now the user sees "Internal Server Error". 

This should resolve issue https://github.com/jimguys/poemlab/issues/17