Bug 1036825 - Refactor tabs opening methods from tabs.js. r=aeftimie, r=hskupin

--HG--
branch : mozilla-release
extra : transplant_source : A%85%B6%0BENx%87_%02q%10%EA%20%90%17T%1C%A2%B0