Add closeTabsToLeft, closeTabsToRight and closeOtherTabs commands

Fixes #851