Getting Doorkeeper to kind of work.  It's a good starting off point for my own provider.