Separated webserver-related code to another source file.