Added proxy support, moved configuration variables into config.rb and modules to lib/ folder.