Added sinonjs and sinon chai for testing and added simple test for oauth memory
Added auth code flow