[WIP] data structures for resources

This PR introduced some data structure to represent resources.
If we want to use map[string]*Resource, then we could combine both resource type name and resource name as a key. WDYT?