Add function tracking to callstack plugin.

This pulls in the function tracking stuff the wip/recondemo branch.
Previously, only a stack of return addresses was available. Now there is
a new API, get_functions, which will return the function entry points of
the current function stack. In addition, the on_call and on_ret
callbacks have been modified so that they pass env and the address of
the function that is being called or returned.