Logs

We could use some more logs around the networkd-related tasks. I took the opportunity to clean up some file operations as well.
Oh right, WriteFile has it.