Add a black "X" close button
Handle close buttons on dock tabs

This also moves the logic of setting up the common tab widget state into
the tab widget constructor.
Update stylesheet for nice looking tabs.