First steps in checking user-supplied filters

Checks for `=` and `__` in the filter
Checks that the relationship is valid
Merge pull request #4 from mangal-wg/filter_check

First steps in checking user-supplied filters