Collision Response Design Question

I'm building a game engine in Flash using Box2d, and I was wondering what type of organizational structure is usually used for doing things based on collisions (counting damage and such). I would like to do it in a way that is fast and doesn't take tons of memory. Maybe someone knows of a book/site that has information on algorithms such as this, along with other topics in game engines that they could recommend. I have no problem getting the actual code working, I just want it to be easy to use and to scale up well. Any advice would be appreciated.

Original thread: https://box2d.org/forum/viewtopic.php?t=256