Rewrite processor to use an object model to represent injections.

@holmes