Schema forms, mappings, and entity improvments

Refactored mappings, new entitiesManager and entity classes.
AttributesWidget listens to changes on other form elements. DialogForm
improvements including validation support.