Fix the phantomjs based test

* Update the depedency package versions
* To run headless browser(phantomjs) based test, we need a static
  webserver. Otherwise all ajax requests will fail. For this add
  depedency to grunt-contrib-connect and configure.
* This fixes the "PhantomJS timed out" errors while running 'npm test'