added deploymentId to CaseDefinition and hacky context switch for task assignment to be able to use CDI there. Added hacky ThreadLocal to store current case (as we do not have a proper ExecutionContext)