Complete logout function. No PEBBLE_KIT project installation