move pidList logic to single place
rename pidList to timeoutList
Merge pull request #516 from code-dot-org/pidList

move pidList logic to single place