The write_decrypted_output function has nothing specific to the
decrypt module and can be moved to the gpgutil module.
Report runtime errors through GLib's GError framework. Also make
sure to free resources before exiting.
Add a module dedicated to helper functions to work with GpgME.
This module provides a small structure encapsulating both a
stdio FILE object and a GpgME data buffer.