Adjust version check. (rebased onto develop)


This is the same as gh-2226 but rebased onto develop.

----

Fix http://trac.openmicroscopy.org.uk/ome/ticket/12045

To test:
 * Open client and try to connect to a 5.0.x server e.g. gretzky. This should not be allowed
 * Try to connect to 5.1.x server e.g. trout