Fix for issue #195 - Add support for CredUI

Using personal fork to allow for code review before checkin to master via pull request...

As suggested by David - change to return an ICredentialProviderCredential in the CredUI scenario.

Also fixes bug when switching between pGina tile and others in CredUI scenario.