basic implementation of reply callbacks
move debug output into the library
turn the client example into a simple karma bot