added a whole bunch of shit

fixed the cart and the sessions
logout functionality
etc.