Undo composer send/save/discard
This patch implements undo support when sending, saving or discarding composed email. Since these operations are now undoable, it also removes the dialog box when closing a composer in certain circumstances, in favour of undo. Finally cleans up composer life-cycle management, especially at shutdown.
Closes #493 (closed)