Added helper function to copy files

Added nifty helper function to copy files. It is perfect for configuration files where something needs to be restarted if the file changes, but other use cases could also be found.