Add directory state procedures and beginning of initial transfer
Added initial transfer, wait_for_task methods