Allow handle exceptions configuration

This is useful in test env, where developers may want to dig inside a
stack trace instead of a generic "Internal Server Error".

This feature is inspired by the homonim Lotus::Controller setting.