Morocco has been mourning victims of its strongest earthquake in more than a century and trying to rescue more survivors from the rubble.