Applied bcrypt for password hash and salt gen, fixed disconnected code, corrected minor session handling problems