Major reorganization and initial login implementation