Destroy (most) of the libav data structures created during file loading and
saving.

This ensures that we close the context and streams that are created from
libav; this might still not be complete, but there seems to be different
APIs between libav and ffmpeg so I'm changing one piece at a time.

Works towards closing Issue #26.