Changes to add transaction support to plugins.

Gave plugins access to an IndexReaer. Plugins now each need to be run in separate index writers.
@krisrogers - Do you just mean the missing bracket?