Update the control buttons on top-level change

This updates the contain to disable or enable the maximize and restore
buttons on the dock item title bar when the container is floated or
unfloated.
Hide the maximize button by default on a dock item
Add a closed event to the DockItem widget

This adds support for a 'closed' event to the DockItem widget. The item
is destroyed after the event processing is complete.