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.
Add updated_at field to core doctype schema

To be able to support finders from rummager we need to be able to sort
documents by their updated_at timestamp. We don't ever want to search on
the field, just sort on it, so index it but don't include it in `_all`.

Note that whilst this field is common across all doctypes, it's not
mandatory. Until everything is using the new content store some things
will have null updated_at timestamps.
Add opened_at and closed_at fields to cma cases

These fields are shown in the search results in finders frontend, but
aren't used for searching or filtering so they don't need to be indexed.