Significant metadata handling rework and basic metadata translation between different metadata formats. Added possibility to define linear gain scaling factors for pipeline matrix, this allows things such as M/S process. Also includes several bugfixes and improvements.