Part remote-login.sh into two different actions.

We cannot handle interactive and non-interactive shells at the same time. So
file copy and decryption with user input via gpg simply is not possible. Thus,
a small protocol is created that allows the client to post data first and then
decrypt the devices in a second call.