macros: have the toolbox inform the macro system when it's loaded

(integrated from trunk branch change a0373f0 by Todd Whiteman <toddw@activestate.com>)