Put some useful obfs2 functions in modules.
Add new obfsproxy mode: ext_server.

'ext_server' is like the 'server' method, but it also completes the
Extended ORPort protocol with the server before proxying traffic.
Add the Extended ORPort implementation.
Be able to parse IPv6 addresses.

Rely on pyptlib to do the parsing.