Fix security issue in delete-response action - allow only ajax request.
Unify code for identities and responses deletion.

Conflicts:

	program/steps/settings/func.inc
- Fix Delete button state after deleting identity/response (#1489972)