Remove extraneous parameter from AMD definition
Refactor to use a plugin architecture

* Moves the Formlet and FieldValidator subclasses into a separate
  'core' module and implements a plugin.
* Adds a standard interface for creating Formlet, Field and
  FieldValidator instances.