Autodetect an event if none was configured
Autodetect an event if none was configured

- Default to the event with the highest ID found in the database
- Retry finding the event until one is found

This allows to deploy SReview without an event loaded, load the event
using the API, and then to just work with things without requiring a
restart

yoe/sreview,yoe/sreview,yoe/sreview,yoe/sreview