Add two new Dialogs due to type attribute.
Create basic 'new project', 'new document' and 'new clause' functions. Also add type attribute to the clause.