Fix timing issue when doing external redirect.
Fixed another test timing issue.
More timing stuff.
Only set NODE_ENV to 'cron' when running from command line.
More tweeks to get tests running consistently.
More tweeks to get tests running consistently.
Hit logout URL rather than rely on browser.deleteAllCookies which doens't seem to work on IE.