refactor out caching in cmd/hdfs

It's definitely a premature optimization, and also blows up with huge
directories.
add some rm tests
when rming, change the Op for the error to 'rm'
add tests for mv
add tests for mkdir and touch
add tests for cat
fix rm tests