callbacks: define an abstract callback class

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