Change resources to list of resources instead of list of series.
Add unit tests.
Support resources in stand-alone messages