Switch user password type based on generate password click

Fixes #31
Fallback to just_name if safe_id is falsey

Fixes #32
Generalise to admin-password

… & fix bug which meant it only worked for user-password
Merge pull request #35 from wombleton/develop

Switch user password type based on generate password click