cells: Refactor LoginManager

Light refactoring of LoginManager, focusing on synchronization,
thread creation, and logging.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/6281/