Added queue flag option.

This commit doesn't work for publishing. For some reason the app runs
out of memory when trying to publish to nsqd. Will look into it.