added binary property support

- add a new rule for media
- added media rule to the rule factory
- added code to type rule to trigger the media rule