Adding changes to run mantidplot using a script wrapper.

refs #6315 & #6913