[WIP] Agent service discovery

—
We ran into problems with this approach where the rename was attempted across mounts. Something that might need addressing. Could be done by having the temp file destination configurable.