Added the ability to add metadata to collections

Works ok, would be better if I could find a module that can load and parse metadata files based on their type, but this at least gets it working.