allow reload to take config
refactor the connection handling in tests
remove ActiveSupport delegation dependency