Feat/ipfs2 test sharness

This is rebased on top of current master and with this sharness tests on travis should pass.
At least they all pass on my Linux machine with TEST_NO_FUSE=1.