add basic support for validating EntityObjects on save and update
Merge pull request #49 from adennie/validation

add basic support for validating EntityObjects on save and update