angular directives to make RESTful resource calls