fixes and cleanups in WenUI. Also implemented reauthentication against nodes on Hub restart