Association Criteria Queries

Adds support for entity association criteria queries.

Resolves #6.