Move more functions from tincd.c into process.c.