move prompt functions from src/auth-pam.c to src/prompt.c