permissions test matlab script

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Permissions test script for Manually annotated Database from Petr

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
writeFileAnnotation edit's to write big/huge files as well

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Read and write file in Chunks

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Read and write file in chunks_Fix bugs

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Read and write file in chunks_Fix bugs

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
force remove files not related to this PR

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Delegate file updating logic to updateOriginalFile

All the logic for setting the name, size, uploading bytes and performing
checksums should now be handled in updateOriginalFile. This function is called
by writeFileAnnotation as well as updateFileAnnotation.

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Fix call to updateService in writeFileAnnotation

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Tidy up the M files (unused variables, semicolon)

OME-DCO-1.1-Signed-off-by: Sebastien Besson <seb.besson@gmail.com> (github: sbesson)
Merge pull request #2787 from sbesson/rebased/develop/matlab_writeFileAnnotation

Matlab writeFileAnnotation (rebased onto develop)