upgrading packages
fixing double counting and timeouts...and fixing problem with phantomjs not sending an end response sometimes for 301/302