Add finalize and trace hooks for proxies.
Merge pull request #38 from jdm/tracehook

Add finalize and trace hooks for proxies.