User Login/Logout/Registration

many changes concerning code health, but primarily the addition of user
login logout and registration done with php session tracking and hashing