Refactor package structure, change scope of some classes and uniform
threadExecutor.