Added public function getMessages()

Added the public function getMessages() so that one can test the status of the _messages array without needing to enter the readMessage() function (blocking loop).

Instead of:

// Wait for an incoming message
$msg = $client->readMessage(); // blocking loop

New usage:

if($client->getMessages()) // non-blocking
	 $msg = $client->readMessage();