Phantomjs update

Apart from minor code changes, additional work in required on the servers.

I noticed that webserver config is not centrally managed and supervisor configs that are in the repo are not used. Hence, some manual configuration is required for now:

**Development server (currently all manually added)**
- The following option should be added to Supervisor config, for PhantomJS: --ignore-ssl-errors=true
- Nginx should be configured to allow, without password, local access to the webserver

**Testing server (no access, so should still be added)**
- The following option should be added to Supervisor config, for PhantomJS: --ignore-ssl-errors=true

For staging and production, the same option to ignore SSL errors should be added. No password is used there to access those webservers.