oAuth integration

Do not merge. Here for reference only!