Registry for HMTK methods

Support for implementing dynamically generated form.

This pull request also includes:

1) the decorator library
2) some cleaning (delete trailing whitespaces)