thorium: add prototypes for message caching mechanism

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>