Fix references
Protect RecentsEvents from multithreaded access
Prefer a ConcurrentDictionary over a plain Dictionary
Copy config.sample to output directory
Wait for complete intialization