Adding some capabilities checks to the AJAX functions.
embrace all the things
Merge pull request #30 from methnen/ajax_capability_checks

Adding some capabilities checks to the AJAX functions.