initial revision of Login and session implementation.
Merge remote-tracking branch 'upstream/master'