Introduce process request end-of-file and various fixes for XMLHttpRequest integration.