Implemented OAuth authentication. This closes #10