DI the script plugin.

Change-Id: I6880a8ea1570e582929a8e277a727dfd20d3c8f7
Reviewed-on: http://gerrit.dmdirc.com/3188
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
Remove deprecated method call

Change-Id: I5e72e62eadfcc17d4c3aca7dece7c83c9d648366
Reviewed-on: http://gerrit.dmdirc.com/3189
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>