Fix bug: getaddrinfo failed.
Make Config & Resolver singleton.
Make sogou related function into a class.
instance method of a singleton should be the first method of the class.
exit(0) when KeyboardInterrupt.
Format string.
Make timestamp related code into Sogou class.