Changes to add transaction support to plugins.

Gave plugins access to an IndexReaer. Plugins now each need to be run in separate index writers.
Looks like some typo in the comment here