More refactoring:

- Move index prompt into a new util module; remove
  a superfluous array in the "pw" script. 

- Helper function for retrieving a password file
  in the default user location.

- Work-in-progress "editpw" script.