new function: resources_deep_merge()

this new function goes through each member of a hash1, and deep_merges()
it with hash2.
This PR depends on #271 (documentation for deep_merge). It also relates
to PUP-3029