Improved the processing of background task to enable more advanced functionalities like queuing (protection against reentrance) -reintegrated from trunk

git-svn-id: http://svn.code.sf.net/p/itop/code/branches/2.0.3@3314 a333f486-631f-4898-b8df-5754b55c2be0