Added IsValidKey() and IsValidKeyAsync() to ApiKey. Improved exception handling.