A start for form templates, event handling.
First version of UI working.