REST API module with advanced resource nesting capabilities for AngularJS