Make callbacks virtual members of the OTSContext

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