mc_login() should auto-create valid LDAP users

The web login logic auto-creates users in case of BASIC AUTH and LDAP when they don't exist.  However, the SOAP API didn't.

This fix includes:

- When user authenticates using SOAP API, re-use the same auto-creation logic to create the user in case of valid credentials.

- When a user is auto-created, execute post login checks and processing like login count, cookies, tokens, etc.  This fix applies to the web interface code path.

Fixes #15869
This code hasn't changed from before.  When a user is visiting a website with BASIC_AUTH, then they have already authenticated.  With SOAP though, they could authenticate as user X and pass in user Y.  I don't know what it is going to buy them though.  I thought briefly about it, but didn't want to pass a flag of "don't create on basic auth".  Let me know if you feel otherwise.