Only allow to join a competition before it ends. Fixes #33
Merge remote-tracking branch 'origin/master'