Primeval black holes and galaxy formation