Prevent deletion of institutions with courses

Adds checks and messages for the delete action for institutions, for
deletion controls on Special:Institutions, and on the EP deletion
API.

Change-Id: I3fc501d5c116d0b4fc4b3de4a46a24109c0095c3