Move these to darwinsys-api from private "mytools", and add -r mode.