Market mayhem has calmed down. Here’s what went down — and why more chaos may be coming.