Switch from nose tests to pytest.

All fairly straightforward except the fsfix mess that
pytest supports without the attach_teardown() hack.