Save console.log, console.error and thrown exceptions to localStorage for later use in debugging of customer's sites.