Make jshint happy: globals, whitespace, === vs ==.
Fix out-of-scope variable

Refactoring in 38487557ca71cbfa934bb11c949741b5464837fe caused the variable
'url' to go out of scope.
Tweak error messages
Improve logging when looking for IdP js shims
Flip order of shim checks, warn if not production.
Configure logging earlier so errors aren't hidden.

See mozilla/browserid#3221 for where this would've helped diagnose a failure.

The fact that `require('../lib/primary');` can fail is another issue altogether.
Merge pull request #3246 from callahad/cleanup_check_primary_support

Cleanup check primary support