Add a warning when redifining events.

Creating an event will reuse an old event with the same name; warn the
user on the console when this happens.
Merge pull request #490 from mpd/master

Add a warning when redifining events.