'int tc_action' -> event handler vector.

Instead of setting a per-class integer value that represents what action to perform on TESLA events, create an explicit event handling type that can be used to register event handling callbacks.

Implement three event handler vectors (printf, panic, dtrace) but also allow vectors to be registered by e.g. unit tests wanting to do more sophisticated mocking.
Trivial: drop unused parameter name.