Use base64 instead of xxd, and display the server motd if it's available.

Tested on both RHEL and Ubuntu servers.