Add dynamic wrapping of vars

This lets you dynamically add and remove entry and exit logging to all
functions in a namespace.