Changes webserver functions to Server Class.