Correctly init document. Doh
Add titles to tab.
Move Document creating for new file to workspace.
file loading save/new/save as/open mostly work. still some issues with the dirty flag.
Fix IsDirty inconsistency when overwriting. File was reloaded after saving, and flags weren't updated correctly.