refactoring to externalise the browser stuff for linux
minor fixes to ensure irxevent is enabled