fixed issue https://github.com/globaleaks/GlobaLeaks/issues/86

@vecna @fpietrosanti @hellais 

this pull request has a twin sister on GLBackend and both must be merged alltogether.

this series of commit fix https://github.com/globaleaks/GlobaLeaks/issues/86