First version working, unittest done for oauth workflow.