remove global state directory, introduce dockercook init
improve PREPARE command and track the resulting dependencies