[WIP] data structures for resources

This PR introduced some data structure to represent resources.
I think probably not a pointer. Could be a name, which could be looked up in a list of known resource types.