Fixed recvFrame to return null on no data. Added Test cases.

Also added pretty printing to ZMsg object.