Separate the config definition to a new file.
Fix event_trait example after the recent change to the threaded call api.