Add support for model validations
Merge pull request #3 from pithyless/model-validations

Add support for model validations