added support for a diAnnotate function

if the token function has a diAnnotate function as a property, the
framework will call it prior to reading annotations.