Add oauth and environment checks
Merge pull request #8 from NoodleEducation/oauth

Add oauth and environment checks