generate the events resource and define a few routes