How Medieval Villages Faced Deadly Plagues