Feature/oauth

Various small fixes to get GitHub working with OAuth.