Add per-file callback for headers and acl when calling `add_file`.

- Accept callables for `headers` and `acl` parameters.
- Add test to ensure everything works as expected.