Fix for issue #195 - Add support for CredUI

As suggested by David - return an ICredentialProviderCredential in the
CredUI scenario.

Also fixes bug when switching between pGina tile and others in CredUI
scenario