Adding in functionality to log pws and use phpass

Adding two functions to PasswordManager to log older passwords to a history table for password viability checking as well as a way to check if a password can be used.