merge middlewares into DataTransformer

Merged JsonifyHttpException and PrettyJSON middlewars into DataTransformer so that all exceptions are caught at a top level. Also PrettyJosn was only doing a small amount of work so didn't need to be in its own middleware.