cloud: update tests and examples to use the new oauth2 package

Change-Id: I4b49febdf5ab2848c83a3589b889719c7fead9e5