Add input check and initalize arry in toJavaList() and toMatlabList()

Add unit tests for Java-Matlab array conversions
Refactor toMatrix() and allow to convert stacks into matrices
Add unit tests for toMatrix() helper function
Remove deprecated function
Fix loadOmero() unit test
Add optional argument for casting function in toJavaList()

- Add corresponding tests in TestToJavaList
- Implement input parsers to validate input
Move helper functions to src/ directory
Use inputParser in toMatrix() function
Move unit tests to test/unit folder
Delete deprecated demo/test functions
Remove deprecated helper functions
Remove references to gateway from loadOmero()
Merge pull request #575 from manics/tables_SecViolation_10049

Handle internal SecurityViolation in openTable #10049
Merge pull request #650 from jburel/rebased/dev_4_4/thumbnails

Handle correctly duplicate thumbnails (see #10225) (rebased onto dev_4_4)
Modify date range.
Change logging level to error on exception being thrown
Reorganize matlab target to account for directory modifications

- Move all jars to libs/ directory
- Fix loadOmero() to find omero_client.jar
Merge pull request #1 from scottlittlewood/insight-cpu

Change logging level to error on exception being thrown
Add test-unit target to run all tests under test/unit

Once xunit is installed, this target can be invoked with
MATLABPATH=path/to/xunit ./build.py -f components/tools/OmeroM/build.xml test-unit
Close session for unsecure client.