Handle file metadata and location.

Add container metadata.
Add abstract location property to file objects.
Bundle and send metadata and location information in hooks.