Added non-throwing methods for resolving hostnames.
Added RAII-style class for initializing and cleaning up the WinSock library.