partial experimental rewrite of ManagedRepositoryTest

This PR does not leave us with passing tests: partly because of the TODO in the comments, mostly because delete on the server doesn't yet work. The previous integration tests needed substantial rewriting to fit with the current server. Hopefully, this PR now brings us much closer to detecting when and how the server's delete functionality remains wanting.