Tcga metadata

As part of a refactor of the TCGA bam importer, pull out metadata functions into separate module.