API for peeking at head messages in a queue

Change-Id: Id40d52d42a2348c15f0252016d55eeb256082f4a