Added ability to create client session with GitLab/LDAP credentials.

Using API key is sometimes inconvenient, mostly when company/school uses LDAP authentication across all services.

This minor change enables creating client with either GitLab account or from version 6 with LDAP as well.

Tests will be added after a merge with pull request #25 by zedtux.