Close tab on middle-click

Also make sure we only fire regular commands when left-click is used,
not for any buttons
Shorten function name to enableTabMiddleClick
Merge pull request #107 from elisee/middleclick-closes-tab

Close tab on middle-click (fixes #106)