Add login / logout on GUI and refactor CldHttpSrv