Add ability to generate previous password

In order to make changing passwords easy, store previous versions of
website's config and allow user to optionally generate previous password
too.