add `#relations` lookup method to resource

Allows the client to care less about whether the relationship was
rendered as an embedded or a link