Make login method idempotent

Signed-off-by: Michal Čihař <michal@cihar.com>
Use shared session strategy by default

This will allow testsuite to run faster.

Signed-off-by: Michal Čihař <michal@cihar.com>