Add JsonErrorMixin

This commit adds the JsonErrorMixin for formatting error message from a
given RequestHandler as JSON.
`kwargs['exc_info']` might not be set so this could result in a `KeyError`