Update to latest trace lib, support trace depth control

Also add some entries on which functions not to trace into, or not very deeply.