Feature/filter templates

Replaces https://github.com/openlabs/nereid/pull/193