Store QStackWidget id inside QStandardItem instead of a dictionary
Start work on handling commands
Emit actual document on document_changed instead of just the stack id, this allows other panes like layers to update without trying to get the document using the id
Add basics for handling commands (and adding item afterwards)