Continuum modeling of heteroepitaxy at the mesoscale: tackling elastic and plastic relaxation