Fix bug in scheduler where scheduled events weren't being run.
More fixes to silly mistakes in the scheduler
Remove dependency on thelonious/types.h, and update includes for the new
thelonious directory structure.
Make patterns use repeats of 0 for infinite duration.  This is much
simpler than using numeric_limits.