Config and directory watching groundwork.