First cut at improved app wrapping.

New -X switch to xwrap will cause all IPv4 socket calls to
internally be remapped to Xsockets doing translations inside
the xwrapper library.