Bump up Selenium version number

The firefoxTest task is broken on Ubuntu 13.10 because of a recent Firefox update. Upgrading to Selenium 2.40.0 fixes this.