Using atomic mongodb commands to implement a FIFO-ish queue.