Add resources API following [the spec](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resources-api.md).