Got full login, oauth and api call flow working