added remote folders to hook
wip handling of sync and processing.
moving validation code out of folder creation, into path cache
wip db changes. Pathcache constructor now takes a tk object.