[#204] Handle both absolute and relative filenames

* Store resources in a single Set
* Depending on the resource type, use S3Api or HttpUtil