Modernise browser.js
Modernise compose.js
Use async nsIContentPrefService2, where possible