Moved module to lib folder
Implemented module init
Work in grantAccessToken