added ability for queue to have a default wait time (long poll)
parameter, more parameter validations and unit tests