Added oauth routes
Fixed oauth bugs