Return request id and response id in putRequestMessage and getReplyMessage functions

Fixes #11