extract init config file into a variable
Merge pull request #626 from pmenglund/master

extract init config file into a variable
benchmark stuff
Fixes

1. Ensure that Connect() is called once
2. Ensure that reconnect's called quickly after each other don't just
lock and wait, closing a newly established connection.