Dynamical Screening and Electron-Mediated Superconductivity in Intercalated Layered Metallochloronitrides