First stab at adding MetadataManager

This is NOT ready to merge yet. I'll be adding implementation for the functions in the next couple of days.
Let's add 'em in the implementation too (I won't otherwise explicitly mark all of those).