added rules
- rules package
- tests for rules package

Signed-off-by: Rolf Vreijdenberger <rolf@vreijdenberger.nl>