require csv library for CSV generation, remove useless stuff from events controller, add csv generation method in registration model