Revert "Revert "beginning work on oauth""

This reverts commit a4533fd441125a218d632dd73e6315d766f939ec.