Added notes to shipment and credit memo, refactoring

It is now possible to enter notes for shipment and credit memo PDFs, too.

In order to implement this, some refactoring was needed.