Move process info code to a separate package and add a basic test

Also factor out duplicated Proc{} structs into types.go
Autostart the 'rd' daemon if not already running and add a 'stop' command

If the rd client is invoked it will auto-start the daemon if not already
running.

Also add an 'rd stop' command to terminate the existing daemon if
running
Compatibility fixes for Linux version of '[' and sed

Also use 'rd stop' and 'rd query' to restart the daemon
instead of killall