tool to create initial passwords file

Add a small utility to create the initial passwords file
by reading the master.cfg directly.