A couple of optimizations (e.g. rewritten ADD update command, added index on temp table).
Refactoring of OrgClosureManager.
Enhanced tests.