Finalized support for file resources. Added bundle discovery customization and caching.