Moved the authentication checking logic from the module to a class
Merge pull request #7 from brian978/alpha

Moved the authentication checking logic from the module to a class