Decide which queue factory using at runtime

The value of "debug" can be defined after the service provider is
registered. This shouldn't have any impact on its behavior.
Fix wrong service name
Merge pull request #2 from GromNaN/patch-1

Decide which queue factory using at runtime