Spain saw one of its most violent days in recent memory as a spate of incidents throughout the country appeared to be connected to a terror attack Thursday in Barcelona that left 13 people dead and more than 100 injured.