Register stores information about functions so they can be called
remotely. The function must take a pointer to a struct as an argument and
return nothing.
type Task struct {
Executable string// Full path to executable. Env map[string]string// Environment variables and values. Args string// Arguments to the executable.}