phase 1 of adding composer to project

did more work with setting up user login session and some code clean-up.