Fork before wifi reload on set_private_ssid.

Ensures the response reaches the browser before the network goes down.
Add Python logout endpoint.