Merged webserver with main code