better structure for passing basic auth closes #66
output userAgent if it is an option
check that getEntriesByType exists in the browser, closes #61
Synch jshint settings with sitespeed.io.

Don't require variables/functions to be defined before being used.
Remove misleading debug printout.