Fix: HTTPException catching

This was previously handled by a WSGI middleware. However, this
seemed more appropriate to merge into the base application in
order to allow hooks access to exceptions after they are thrown.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>