Range-related code extracted from Reaction class.

Now have a more general AbstractIteration class that can
be used to implement arbitrary iteration procedures.

Have also removed XML/ folder.