Add support for "recv chat" operation.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Move hex dumping helper function from prime_rpkt.c to utils.c, adding an argument for specifying the detail level.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>