Add JsonErrorMixin:

This commit adds the JsonErrorMixin for formatting error message from a
given RequestHandler as JSON.