This extracts the label-to-resource conversion to a separte "naming" package for use across different providers. Early versions of the commit were done by antoinne85 in #79.