Correcting or and adding not

Previously, OR filters always returned true (fixes #500).
Convenient factories for logical filters
Doc fixes
Merge pull request #501 from tschaub/logical

Logical filter touch-ups