Refactoring ActorThreadPool and others.
Merge branch 'origin/develop'