Refactoring auth and providing helper methods to access OAuth related details.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>