gui: Port state workspace to QMdiArea

Signed-off-by: Michael Buesch <m@bues.ch>
gui: Re-upload mem-areas on state window close

Signed-off-by: Michael Buesch <m@bues.ch>