Start on an OAuth RP include.js with a promises based API.

issue #1386