Stability Of Ricci-Flat Spaces And Singularities In 4D Ricci Flow