Added oauth, and some other changes.