Some changes to logging.  Use the new header's _console.log method if _E is defined, otherwise use console.log, but only if debug is set to true.
Per Ben F $.when not necessary here.
Merge branch 'header_work' of github.com:natgeo/django-comments3 into header_work