mockserver: server_main is now a classmethod, to fix an issue with multiprocessing on Windows.