More work on tab drag'n'drop behavior

Set pointer-events: none on close buttons when dragging a tab. Insert
dragged tab to the proper side of the hovered tab based on the relative
mouse position.

This is still a bit of a mess so I'll revisit it all later, probably in
a clean branch.