expose the envirement globaly in rules, predicates and actions (tests need to be fixed)
fixed test after code cleanup
minor code clanup in rules
handle switch devices that are prefix from each other correctlyj
better predicate handling

- fix for prefix device names of each other
- added "greater or equal than" and "less or equalt than" for attribute predicates