Add more logging
set referrer on any unload event, and check referrer/newurl if either is set
Merge branch 'master' into gh-pages