Create initial HTTP adapter and port classes and functions from the PHP version.