Merged changes from remote + small changes on error handling

git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/framework_tvb@6480 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1
Changed tsDataObject to better handle the server response

git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/framework_tvb@6481 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1
Small code refactoring

git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/framework_tvb@6482 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1
Merge branch 'trunk' of https://github.com/the-virtual-brain/tvb-framework into trunk