Change API methods names (#10).
Move checks for AJAX API requests to a decorator.
Create shortcuts for several JSON responses.