Add proxy trace hooks.
Merge pull request #6 from jdm/tracehook

Add proxy trace hooks.