Implement new license behavior. Fixes #1993

Fixes #1993 

Refactored some files:
- renamed LicenseDowngrader to LicenseExpirationChecker and removed ExpiryChecker class.
- cleaned up the unit tests, resetting the registry key.