Refactor survey interest ordering into Surveyor object.
Function to promise a wait of specified duration.
Move gController initilization to the top of main
Avoid browser starvation during history processing.
Name a constant proper.
Made test less sensitive to small time differences.