implement PUT+DELETE /edges and related tests