Webserver code extracted from main Self tree