password ordering versions-prevents broken restore

keep track of a password ordering version in autosave files to
prevent restoring a session from an incompatible version (a version
which generates a different ordering of passwords);
also, minor update to extract-armory-privkey.py: count addresses