Fix date parsing for Safari

Safari has a terribly weak native Date parser which can't understand
"YYYY-MM-DD". Swap out instances of "new Date" that rely on parsing
strings with our own date parser.

Also, fix selenium scan tests so they work with latest firefox and
selenium.