Make callbacks virtual methods of the OTSContext

Instead of the Set* functions, clients should just override the virtual
methods, as suggested by Behdad.