Make delete action handle a _type parameter

Makes Index#delete take type and id instead of just a link.

This allows us to delete a document with a type other than edition,
without having to add special cases to the `link_to_type_and_id` method.