Added password hashing

added encryption to passwords using bcrypt. Removed more defunct code. Tidy! :)