Bug 1033858 - Add a listener for and log errors in content. r=gaye

nit: If we use chai's assert, we could assert what we're actually checking here and [presumably] get a nicer error message. Chai has `assert.include(haystack, needle);` or something to that effect