callback: add a multiplexer.

Close #41.
Merge pull request #69 from bchretien/feature/callback-multiplexer

Feature: add a callback multiplexer.