Add closeTabsToLeft, closeTabsToRight and closeOtherTabs commands

Fixes #851
I had considered this, but I couldn't really see the point; there aren't really any more sensible predicates you could use, and this felt like it fitted in with the style and legibility of the existing code better.