Issue #284 RtGistITCase.readsAndWritesGists failing on write fixed

This pull request contains also fix for #157
What is NOT done - removing gists after tests. This part is blocked by #310