Fixed position of quit confirmation dialogue.

It is now centred on the window from which the quit menu item was selected, rather than the centre of the screen.
Fixed positioning of ScriptWindow close confirmation dialogue.

It is now centred properly on the ScriptWindow which is being closed.

Fixes #751.
Merge pull request #819 from johnhaddon/discardChanges

Discard changes