Add function to marshal resource associations

It will be useful e.g. for setting/updating links from Racks to
Resource Classes, from Nodes to Racks or other similar associations.

Change-Id: I7a525cc525940ee2ae72269004b5d8d1b27f123b
Merge "Add function to marshal resource associations"