Log exceptions on tests run with test-in-console.

Also counts exceptions as failures and removes unused finished var.
Comment about why we don't connect to galaxy before bundling
Path of error is escaped where needed and looks more like actual JS.

 - Escape keys looking like something complex
 - Check simple keys with simple regex, full story: http://stackoverflow.com/questions/1661197/valid-characters-for-javascript-variable-names
 - Tests
Fix check test failure for FF 3.6

TIL sometimes JSON.stringify can convert new lines to "\u000a" as supposed to "\n".# Please enter the commit message for your changes. Lines starting
Merge remote-tracking branch 'upstream/devel' into canonical-stringify