Ported the rexec client code to Graft.