Bug 813978 - Part 2/5: rewrite filtering by only one condition. r=philikon
Bug 813978 - Part 3/5: rewrite filtering by mix of any two conditions
Bug 813978 - Part 4/5:
Bug 813978 - Part 5: test cases for mixed filter targets.