Runs the plugins.rb file in an isolated namespace, records the plugin
actions it registers for and then passes the data to index to be stored.
@param [String] name the name of the plugin
@param [Specification] spec of installed plugin @param [Boolean]
optional_plugin, removed if there is conflict with any