Add get_flattened() function to ProvBundle

Puts all bundle records into root document and merges attributes.