Separate timer code from PWM/PPM code.  The method of looking up a callback is now generic which means other (forthcoming) code can configure callback handlers.