WIP: modularize events app.