Dup, iterator and test work

Complete dup implementation
Redo iterator interface, adding more routines and supporting reverse
Add test directory with build infrastructure and the beginning of
  a random write read test