Add related_to query constraint.

This adds a related_to method to Query which can be used to
query objects that are in a relation in another object.
Merge pull request #74 from joekain/related_to

Add related_to query constraint.