Allow exception handling to be disabled

The default exception handling is very inconvenient while developing and testing a controller as it may hide difficult to spot mistakes behind a very generic 500 error. A solution proposed in #5 would help in development, but not when writing tests.