Made key validation claner (class method in Singleton, messy I know). Implemented handling of tox:// url scheme.