rewrite WsUtils to better handle authentication sessions
remove old restapi 1.0 code
move restapi session re-creation in sysutils.restart_daemon