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