Made some preliminary untested changes to the AppConnector, core Socket code, and B2B.