Added platform emulator

It uses localStorage to store the state,
and intercom.js to sends updates to other open windows.