A queueing system for the cmd module to limit the number of open handles.
Slightly reworked the code for readability
Let's use a library instead of rolling our own solution
Be less specific with the dependency version
Merge pull request #983 from wibblymat/issue-981

A queueing system for the cmd module to limit the number of open handles (closes #981)