group&mimes modals: clean, relocate, mv <script> to separate templates, fix modal/modal.mustache, ...