Fix websocket when webmpc is run behind a proxy inside a subfolder
Fix ssl detection for websocket