Add sharness tests for ipfs add and cat

This will hopefully help prevent regressions.