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
- added test cases for binary fields.
Merge pull request #171 from ctrimble/feature_binary-fields

Binary property support