Fixed loading problem with biography template
Dialog refactoring, templates added to doc loader

Also, schemaTags now rebuilds menu when a different schema is loaded.