Refactor event API files for recurrence

Will be much easier to keep the recurrence biz logic in its own file separate from the basic non-recurring example code