Move logic from exporter to PublicationLog

By encapsulating the logic for fetching change notes for a publication,
it's possible to reuse it with other exporters.