Added AppLifecycle monitor, that manages a blackListFlag when a device is locked/unlocked, refactoring of instance vers,