Pull request for issue #840

This is a pull request for the issue #840. It adds a new plugin type SIM_CONTROL_PLUGIN that can be used for plugins controling the simulation.

If the simulation is started with "-nogui=<simfile>"  now one control plugin is required. Otherwise the simulation will terminate. This removes the hard coded requirement for a ScriptRunner plugin.