fix encryption key generation (based on hostname), properly forget accounts, some other minor improvements (compiler warnings)