Created a class and a decorator for handling events.
Merge branch 'master' of https://github.com/ecampver/distributed-tournaments