add support for reading password from a file

This resolves #2 from cbbrowne.