Mocking dm4c for our rest_client.js usage