Correct some error inconsistancies. Add browser testing of errors - import missing error fails because of #1117
Once applying the rootpath, null it so it will not be applied again
Fix import errors in browser mode. Fixes #1117 and fixes #1118
Merge remote-tracking branch 'upstream/master'