Add option to limit number of threads on a worker.

Currently, a worker will pull off as many jobs as it possibly can and spin up a thread for each one. The option for a maximum number of threads may be useful depending on the rate of jobs being queued as well as environment constraints.