Source files for the 0.9 DLL have been uploaded. They can be found as an attachment at the end of the first post in this thread.
As part of my experiment in seeing if the DLL production function could handle production choice, I ran into a number of issues stemming from new FFH2 functionality. Mainly, the AI didn't seem to recognize the importance of Mages and Priests. I made a couple of new, simple functions to hopefully help with this in future tweaks.
In CvUnit I created the following functions.
isChanneler() - returns true if the unit has any of the Channeling promotions
isDivine() - returns true if the unit has the Divine promotion
getChannelingLevel() - returns an int from 0-3
In CvCity, I also added a new function, getAltarLevel(), that will return the level of the Altar of the Lunnotar in the current city. Returns an int from 0-6