Wait 5 seconds for activation

Show toast after waiting for 1 second.
Code cleanup.
Log if device is secured (credential storage)
Cleanup & disable button when installing
Refactoring: showDialogAndFinish()