Principal Name is actually Principal Id for some of our clients. We need to check this as both.

Adding new configuration property to determine whether to allow login with principalId or principalName.

fixes rSmart/issues#420
Merge pull request #11 from leo-at-rsmart/feature/issue-420

Principal Name is actually Principal Id for some of our clients.