Major rework to split up webserver code and use stylesheet transformation