finish inital ftrucate code.
 - put layer of indirection (writefh) in the fhs map so we can
   swap out filehandles without having to change the map
 - get the restorefds code for the data droppings in, index
   should handle the index droppings (if any)
XXX: need to look at locking and review case of renaming an open file