Added JSON/XML REST API. Also removed default routes, now using explicit routes.