Change AgaviSecurityUser::hasCredentials() to use AgaviSecurityUser::hasCredential() for complex lookups and refactor/simplify method, closes #1259