Reintegration

Commits from integration branch without agent/worker communication refactoring and tests