Clean up some inconsistencies with worker states and running tasks
changed -f option to also take a range of ports low:high
added check to make sure foreman_q is created when in foreman mode, or exit with a failure message.
Merge branch 'master' of github.com:cooperative-computing-lab/cctools

merge in Dinesh's changes to my edits