Close tab with middle / cmd + click

Allows editor tabs to be closed with either middle click or cmd + click.

Credit to @bfabry for the code.