Removing unused code
Removed unused function parameters
Adding braces to if conditions to be consistent with the rest of the file
DRYing up these two if conditions
DRYing up the error handling in oauth.js
DRYing up model data usage
Moving duplicate functionality of generating tokesn to a generic function
Moving errorHandler function to generateTokens function
Removing jshint annotations
Merge pull request #4 from jaredmcateer/oauth2-code-cleanup

Oauth2 code cleanup