REST API and OAuth2 implementation in Salesforce