MDL-29857 - lib: Add an OAuth 2.0 client