Reworked filtering implementation

Tokens are now parsed deeper into structures depending on
the case we encounter. After being initialized, these
structures must be able to test a condition for any
entity provided.