Fix bugs in watchable_map_t. Add a new type of directory manager that uses a watchable_map_t instead of a single watchable_t.