rewrite of serverUrl construction

* dependent on the window.location.protocol result, we construct the serverUrl
* for strato ssl-proxy, we hve to insert the 1st part of the window.location.path result