Bug 926561. Separated click handlers for different mouse buttons. Added logic that closes selected tab on middle click. r=mbrubeck