Support json formatting for mobile routes.
Added events API support.