Password helper functions

Hashing is much more secure. Old password generation functions moved
from gk_basic. Validation class added.