2014 sv1+sv2 develop

This is the same fix as applied to [dev_4_4](https://github.com/openmicroscopy/openmicroscopy/commit/d3de2cc04209dd92d59d3e94d593b59802ae7be0) and [dev_5_0](https://github.com/openmicroscopy/openmicroscopy/commit/6870a7c2c69d1d5499811deb1565eaf341d77858) to correct the [vulnerabilities](http://www.openmicroscopy.org/info/vulnerabilities) released in 5.0.5 and 4.4.12 ([release announcement](https://www.openmicroscopy.org/community/viewtopic.php?f=11&t=7640))

The same scenario for testing applies as for each of those branches.

----
--no-rebase