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()
Reorganize matlab target to account for directory modifications

- Move all jars to libs/ directory
- Fix loadOmero() to find omero_client.jar
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
Fix warning in test-unit target when MATLAPATH envvar is not set
Add copyright to all src/ and test/ Matlab files

Use built-in fileparts() function in findOmero()
Merge pull request #666 from sbesson/matlab_toolbox_cleanup

Matlab toolbox cleanup