Move UI thread-only modules to src/browser/ui

Also removes `putDOMComponentListener`