Implements new deterministic protocol (not well tested yet). Defines event priorities (currently not in used)
fix some bugs on deterministic mode: non Blockevent scheduling