Adding timeout to RPC call when waiting for replies

Using RPC calls, I have run into issues if the server fails to produce a return message, the php continues to wait locking up an apache thread and littering RabbitMq with temporary queues until apache is restarted.

This patch adds the ability to pass in a timeout for waiting for a message in the temporary queue.