fixed the cap managment of the command state queue
- added a thread for schedule the check of the command state queue
  to execute the cap
Merge pull request #20 in CHSBNDL/chaosframework from fix_command_state_result_queue to development

* commit '5abf613a9d8c9a42caf1bf5d79e5c803ea51d99b':
  fixed the cap managment of the command state queue - added a thread for schedule the check of the command state queue   to execute the cap