Implement files resource for API. Part of #533
Implement prettyprint and JSONP using action helper.
Move resources controller to API directory.
Limit pretty_print and callback to GET.
Merge branch 'api' into api-exception