Fix reload after editing models on the frontend.

Adds parameters to CMS.Modal and CMS.Plugin to handle the different cases.

Fix #2251