Added client id and secret to configs.
Required manager to be provided.
Added getToken function.  Fixed compiler warnings.
Removed redundant type declaration.