Server: Use public_html dir by default. Fix links without extension. Fix reusing of socket.