Clean /baseurl urls, put in display code
Put in backoff code for WebSockets (fixes #359)