refactor task_workers and event_workers.
Merge pull request #157 from betashepherd/master

patch code for task worker user/group set