trivial: Fix up the .ini.in file to use the correct prefix
Fix a potentially invalid read spotted by valgrind
Fix a crasher in the screenshot loader

If the user switches away back to the overview before the screenshot has
finished downloading, we can crash the service in some circumstances.
trivial: Optimise gs_plugin_add_categories() a few cycles