Pass global and file metadata/contents together to plugins

Currently a plugin in the chain is called once for each file. (Plus potentially once for initialization, before the regular calls.) This is not really flexible, as it is not possible to

1. Add global metadata, based on the file(s). E.g. a `collections` plugin would need to add a global index of the collection(s) to.
2. Add metadata based on multiple files. Again, a `collections` plugin would need to add `next` and `previous` pointers to the file metadata, based on other files.
3. Add files to the chain. E.g. the `rmarkdown` plugin creates extra files, images, potentially JS and CSS files. These should be added to the chain.

Etc. It is much simpler to pass both the global metadata and the file metadata to the plugin, in one go.
Maybe. Although as `files` also stores the content of the files, it does not scale very well to have all files in a potentially huge object, that gets copied every time it is modified. It is also separate in metalsmith. 

Btw. if I ever want to make this scale to more/bigger files, then I would keep global metadata and file data separate and use an environment for the files.

But I don't have a strong preference actually. I made is separate, because it was already separate in your code.