Master election, messaging between tabs. Working/tested on IE9+/Chrome/FF