Get Messages from a Queue: Enabling Long Polling using the 'wait' parameter