Fix logging setup

* uWSGI imports app, never executing it as `__main__`.
* Ensure event calltimes aren't null on creation
* Fix event tests
* Tweak formatting