Allow specifying multiple files.

Can use either an array of objects, or an object for the `files` option.

Requested by @mmun.