Implement config watching and reloading.