Implement getResource function in EntityModel

Function makes basic AJAX call to get object based on relation passed in