Rebuilding server architecture to solve bug caused by System.Directory

.. using STM for concurrent comunication
TODO : in order to make it working jobID must be replaced everywhere by
TVar or something...