69 exception handling

Fixes #69 

Adds a middleware that logs out any exceptions that occur in the processing of a request.

Tested with python2.6 and python3.2

I used the script from #69 on a virtualenv containing pretenders1.0.1 to replicate the issue.