main: Use recently added grl_deinit()

Instead of unloading the plugins and sources ourselves.
main: Make plugins window clickable again

Modal change for Preferences broke that.
main: Track the maximised state

https://bugzilla.gnome.org/show_bug.cgi?id=703655