Fixed oauth flow. Added oauth debug