add new pw crypt routines
password reset mostly works, need to sort out circular import issue