tools: Various fixes to password set script

The exit status of wget was not checked properly since it would
check the exit status of the 'echo' command.

Also fix some indentation in the script and remove whitespace
tools: Various fixes to set guest sshkeys script

The script would for example overwrite all existing keys in the
authorized_keys file

Some things in the bash script are also simplified