Resolves #252. GUI will switch between http and https protocols on restart

If the "Use HTTPS for GUI" setting is changed, on the next restart, the page will refresh to use the correct protocol.