Orders events correctly.
Adds Event model and mapping.