Fix coding style
Fix HTTPS and connection timeout
Use EventMachine::DNS::Resolver instead of RubyDNS