Better user feedback for connection problems

This pull request solves the problem with trying to connect to an unencrypted relay socket from a https-page. And also gives the user som feedback that it's actually connecting.