IM3: replace tabs with spaces and remove trailing whitespace
IM3: close file handles and make internal classes static

This is necessary to make automated tests pass on .im3 files.
Merge remote-tracking branch 'origin/develop' into im3

Conflicts:
	components/formats-bsd/src/loci/formats/in/IM3Reader.java
Prevent potential NPEs when close() is called
Merge pull request #1457 from melissalinkert/im3

IM3: fix memoization and whitespace