add user institution getter to repository DAO
refactor and expand repository template path features

also fixes associated unit tests

Conflicts:
	components/blitz/src/ome/services/blitz/repo/ManagedRepositoryI.java
update properties documentation
improve consistency of %hash% repository template path expansion
fix trac 12421: remove %eventId% from template path expansions
allow %subdirs% expansion to be longer
exclude path separator from expansion term parameters
fix unit test to prevent accidental term typos
make institution query more null-safe
correct omero5 URLs in etc/omero.properties
detect when user-owned segment of template path expands to nothing
clarify behavior of %subdirs%
adjust javadoc to mark up more template path expansions
add some javadoc
add missing imports
Merge pull request #2751 from mtbc/managed-repository-template-path-expansions

Managed repository template path expansions (rebased from dev_5_0)