Who's who in the Syria-Turkey conflict?

It has been called an "unbelievable mess" and worse. Sworn enemies are now friends. Old scores are being settled. Acronyms are everywhere. What forces are at play in north-east Syria and what do they want?