A general multiscale framework for the emergent effective elastodynamics of metamaterials. (February 2018)