fixed sessions implementation on client and server
resolved merge issues in passport and user.js