refactored oauth. added json timeline factory/test
refactored oauth. added json timeline factory/test