Added ref/mimetype attributes to mediapackage  attachments

Add ref and type attributes to the attachments.

We need this because one we are developing a plugin to galicaster to take photos every X time. Each photo is added to the mediapackage as an attachment and we need these parameters to pass it to matterhorn.