Add support for Java -> JavaScript regex transformation.

This required (or so I thought) the general introduction of constraint attribute decorators. Also, the constraint attributes now adhere to the new interface made available in a previous change set.

Fixes #9.
Replace the term 'validation rule' with 'constraint' consistently.