Study and study version stability improvements

Sites must be removed before archiving

Users who archive studies: You now can move a study version from Approved to Archived only after there are no sites associated with the study version. (Issue: 24965275.)