Added description of constraints

Initial changes in support of #95.

This currently covers addition of `constraints`. Still to do:

* [ ] revising `type` to use XML Schema URIs. This would be a breaking change
* [ ] addition of `datePattern` to support more flexible parsing and validation of dates.