Added class for Oauth rest client
Fixed to UI and cleanup of auth code.