Massive overhaul of hash class to rely on phpass