Add ability to pass :max => 0 for unlimited number of workers.
Get rid of deprecation warnings.