fixes php fatal error when non-logged-in users visit API page, and adds security for all application pages
Merge pull request #24 from bshaffer/fix-500-error-and-add-security-for-apps

fixes php fatal error when non-logged-in users visit API page, and adds ...