Middle clicking a tab now closes it.

Rather than only checking for a left click, any mouse-down event on a tab will be evaluated (also making it easier to also detect right-clicking a tab when needed in the future). If the button clicked was the middle mouse button, the tab will be closed.