Refactoring client code:
Refactored client code out of oauth.go. Created a generalized client function for non-oauth requests