update to new usage of dircache module
add test to check for modified files
fix reset to use current ref not sha it points to
test cleanup, all tests except clean dep ones pass

tests dependent on clean not working as clean not yet properly working