Fix security issue in delete-response action - allow only ajax request.
Unify code for identities and responses deletion.
- Fix Delete button state after deleting identity/response (#1489972)