Highly generic resource management templates.
Merge generic resource management into master