thorium: add code for message multiplexer

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