Time-dependent rupture and slow crack growth: elastic and viscoplastic dynamics