Move codepath-oauth into library