Add a method to save the workspace (documents and layout)

Add a method to save the workspace (documents and layout)