Switched from obsolete gethostbyname() to getaddrinfo()

Neat side-effect: IPv6 is now supported as well.
Updated tests for both IPv4 and IPv6 testing.

Your hosts file should list ip6-localhost as "::1" for the tests to work
correctly. This problem may be solved by modifying the parser in a way that it also accepts
addresses like "[::1]".

Shed is only tested using IPv4, warp is tested using both protocols.
Make the tests pass on Windows.

Windows can't stand high arguments to listen.

The reuse socket options doesn't work on Windows.

"ip6-localhost" is not defined on windows, use localhost instead.
fix openTCPConnection on Windows.

The problem was that getAddrInfo doesn't initialize the socket library
implicitly. If that is the first thing that is done with sockets, then
the program will crash and burn with a misleading error message.

The initialization is done only once, so the cost of a superfluous call is
minimal. It is a no-op on other OSes.
set bounds on the httpd-shed dependency
Fix runtime problem on GHC 6.10, just in case anyone cares
Ignore compiler output in test/
Add warp-tests flag to cabal file to allow them to be disabled,
e.g. to simplify the dependencies.
Fix warning on non-Windowss
Add module header to get utility
Build with both older and newer Warp.
Document withSocketsDo call
Fix Windows build (broken by dc58d349)
Merge branch 'master' into ipv6

Conflicts:
	test/Httpd.hs
	test/httpTests.hsb
Add support for RFC2732 literal IPV6 addresses in URLs
Hack to support RFC 2732 addresses in openTCPConnection
Switch to using RFC 2732 literal IPv6 address in tests
This makes it closer to the IPv4 case and avoids a dependency on whether
'ip6-localhost' is defined in /etc/hosts or equivalent.
Fix compilation with network<=2.4
Switch maintainer email back to my personal address
The mailing list hasn't helped much and is a spam magnet
Relax mtl restriction in test harness