Feature/connection config

@DWvanGeest please review. I can't guarantee that every feature works but it seems to do the job for our load test.