Add TreeCapitator IMC support

Let me know if you have any questions about the code.  I'm thinking about writing a proper API for all this, but we'll cross that bridge once it's built ;)