Correction for tab/space issues introduced by lost editor settings.  Also, temporary simplification of login code that was aimed at creating reusable login sessions.