Authorization in separate file

@donnapep 
- Removed Authorization module from common.js
- Created new authorization.js file
- Code now checks for dependencies to exist, if they don't an error exception is thrown