Integrate event-tracking in to the LMS

Support incremental conversion of events from the old API to the new, the following initial changes are made so that we can validate the emission system:

* Emit events when an enrollment mode is changed.
* Use the new API for all enrollment events (including the new one).