Moved config options to the settings file. Added support for non-SSL connections.