Add legend file for id mapping

See AT-563
I was thinking something along the same line but I wonder if it should be a hash, keyed on `id`, with a nested hash structure with keys `library_name` and `platform_unit`, i.e.
id => { library_name => value, platform_unit => value }