addressed issue https://github.com/globaleaks/GlobaLeaks/issues/945

allright also this patch is ready for integration and complete of extensive unittests.

@vecna can i please ask you to review this? you are the most indicated person as the TempObj is something that i suggest to be shared with you also for the Tokes implementation

anyway @hellais / @mmaker as the topic is relavant can i please ask you also to provide your feedback?