ApiResponse and ApiWSGIApplication

Introduces extended versions of the webapp2 framework classes for
dealing with application-wide issues (e.g. default response headers,
JSON output).