Add IPv6 support for plain_tcp backend.

This partially fixes issue #6.
Modify redirect frontend to support IPv6.

This fixes issue #6.