Moved initilization of webserver back into main

This is required until #24651 is resolved