callbacks: experiment with basic callback mechanism

Signed-off-by: Peter Williams <pwil3058@gmail.com>