Add tests and code for application exchange via XML Provisioning Server XML interface. Make changes to http_handler.
Add tests to socket_request and xml_request. Add improvement to several session handling into xml_request.