General clean up of test_ishare.py.
Initial cleanup of test1201.
Initial version of Hibernate filter disabling.

The different way in which iQuery is used allows for
calling resetReadFilter(), which should remove the owner
Hibernate filter. Sadly for now - it doesn't.
Improve customization of training_setup.sh script
Use HibernateCallback instead of iQuery.

This change in methods that map Share Data to Sessions
allows for access to the Hibernate session object, which
allows for disabling read filters. This then returns shares
for both members and owners.
Further clean up test1201.
Enable tests that were failing (see #11537).
Move share data query to SqlAction.
Fix tests in test_ishare.py.

Those final changes make all tests in test_ishare.py
pass and make shares appear in the web client again.
Protect config filename variable expansion using double quotes
Fix passing testImportMultiGroup integration test and remove xfail

- Modify get_object to pass {'omero.group': -1}
- Set arguments rather than session key to allow -g
Refactor set_conn_args() and move '--sudo' arguments to the tests
Pass omero.group to omero.sys.Principal when creating sudo session
Remove xfail mark from testImportAsRootMultiGroup
Rename test_login.py as test_sessions.py and remove duplicate register
Make sure query filter gets enabled.
Add eventContext test to testLoginAsRoot
Add eventContext test to testLoginAsGroupAdmin
Remove unused capsys fixture
Add integration tests for login in multi-group with/without sudo