Authentication DAO and Manager

Also contains the password hashing utility.