Output rel so that we can more easily get it if we are iterating over a collection of links.
Re-added getRootNode since we need the URI without the trailing slash to work properly. (AngularJS $resource removes trailing slash for example).