Update to latest trace lib, support trace depth control

Also add some entries on which functions not to trace into, or not very deeply.
Whitespace minor fix
Merge pull request #759 from weissjeffm/trace-upgrade

Update to latest trace lib, support trace depth control