A mesoscale model for coarse-grained protein dynamics