httpserver: Fix restarting the server once a plugin has been unloaded and loaded back.
httpserver: Fix design.