Connection singleton + cleaning up the foreman stuff in core

This is foreman side for this PR https://github.com/theforeman/hammer-cli/pull/70

Besides using the new connections concept, it prepares te code for easier merge with dynamic bindings