added oauth functionality to rest client.