callbacks: start working on callback mechanism similar to PyGTK's

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