wip new api and 3-legged oauth #3

Open
weskerfoot wants to merge 3 commits from oauth into master