Helper module. Fix SSL support

Provides a helper module to provide common methods and reduce duplication. Also provides consistent SSL support across all knife commands.