Add control over when resources are released. AH-431
Merge remote-tracking branch 'origin/master' into Physics_Cleanup