Implemented built-in tag 'filter' (closes #5). Refactored code concerning filter processing (introduced new enum AstFilter)