Add a test for checking that the required directory count is valid

We can't reliably test for the required directory count being too large,
but the test will fail if the directory count is too small.
MDBService: fix file initialization for mapped files
InCell: put the current file first on the used file list

This is important for datasets with .im files, which are not usable by setId.
L2D: remove unnecessary override of getRequiredDirectories

All files are in the same parent directory, so there is no need to
preserve additional directories.
Visitech: use Location instead of File
Fix Zeiss TIFF reader and CaseInsensitiveLocation to work with mapped files
Standardise whitespace using BF rules.
Remove dead code, update comment.
Merge pull request #1 from bpindelski/pr-1252

Minor fixes.
Improve exception handling as suggested by bpindelski
Prairie: use Location and RandomAccessInputStream instead of File
FV1000: fix handling of mapped files
Tidy up the required directory test
Do not run setWritable(false) tests on Windows platforms
merge develop -Dorg -Ssuccess-only: PR 1154 (Leica: prevent exception when linking EmissionFilter)
merge develop -Dorg -Ssuccess-only: PR 1252 (Add Example code or writing Plate data to ome-tiff.)
merge develop -Dorg -Ssuccess-only: PR 1279 (travis: Build with Oracle JDK 8)
merge develop -Dorg -Ssuccess-only: PR 1292 (Memoizer: improve usability of in-place caching)
merge develop -Dorg -Ssuccess-only: PR 1296 (Add test for getRequiredDirectories)
merge develop -Dorg -Ssuccess-only

Repository: openmicroscopy/bioformats
Excluded PRs:
  # PR 1161 sommerc 'Initial CellH5 Reader class' (user: sommerc)
  # PR 1295 rleigh-dundee 'C++: clang++/llvm 3.3 fixes' (status: failure)
  # PR 1177 rleigh-dundee 'specification: Add metadata for HDF5 embedding' (exclude comment)
  # PR 1265 qidane 'New units' (label: exclude breaking)
  # PR 1015 qidane 'Messy binary' (exclude comment)
  # PR 816 melissalinkert 'Add support for multi-channel Volocity Clipping datasets' (label: exclude)
  # PR 1054 qidane 'Additional annotation points throughout the model' (exclude comment)
  # PR 1297 sbesson 'Add documentation for PicoQuant .bin format (rebased onto develop)' (status: pending)
  # PR 857 melissalinkert 'Initial support for Zeiss .lms files' (label: exclude)
  # PR 858 melissalinkert 'Initial support for Veeco AFM data' (label: exclude)
  # PR 1249 PremyslFiala 'ND2 - Bug fixes' (user: PremyslFiala)
  # PR 1141 LeeKamentsky 'Reader for Amaris FlowSight .cif format' (label: exclude)
Already up-to-date.

Merged PRs:
  # PR 1154 melissalinkert 'Leica: prevent exception when linking EmissionFilter'
  # PR 1252 imunro 'Add Example code or writing Plate data to ome-tiff.'
  # PR 1279 rleigh-dundee 'travis: Build with Oracle JDK 8'
  # PR 1292 sbesson 'Memoizer: improve usability of in-place caching'
  # PR 1296 melissalinkert 'Add test for getRequiredDirectories'

Generated by OME-5.1-merge-push#419 (http://ci.openmicroscopy.org/job/OME-5.1-merge-push/419/)