Fix compile on Java 8.

The original code was causing javac to throw an AssertionError. Working
around the labelled break (by using a flag) seems to fix this fine.
Trying to minimize differences against the original code.
jai: Remove commented-out jj2000 breaks
Use new latest/bio-formats5.0 redirects
Install Sphinx using pip instead of apt-get

The Travis build seems to be failing on a bug which has been fixed in
the 1.2.2 version of Sphinx that we currently use in production
Merge pull request #1271 from sbesson/latest_redirect_5.0

Use new latest/bio-formats5.0 redirects
Merge pull request #1262 from rleigh-dundee/jj2000-jdk8-dev50

jj2000: Fix compile on Java 8 (dev_5_0)