Improve names in handler state object
Named output handlers for both switching and adding new handlers
Merge compile(), processInputs() and createTag() to a single function createTag().
Improve names of html helpers
Use root factory function as reset, and organize adding of default handlers