Revert "oauth first stab" (moved to branch)

This reverts commit f9cd6965ad667971156deffaf37da1333dbfe120.
Revert "Revert "oauth first stab" (moved to branch)"

This reverts commit 397ae03417a0783125b952646a9463c11404e5dd.