(MODULES-48) Parse negated rules

This adds tests mentioned in #141 and MODULES-48 to make sure that they
are covered by #267

Closes #141
Merge pull request #299 from hunner/negation_support

(MODULES-48) Parse negated rules