An abstract approach to Loewner chains