impl oauth 1.0.a & refactoring