refactor rewrite mechanism
created rules for css selector filters
refactoring ITag interface
tests on new rules