Set the correct response header.
Added a dev task to Gruntfile
Added check for AJAX header on API requests