Integrate gresources

We now build certain elements into our binary as resources, such as the
new Preferences UI. This will enable us to not rely on guess-work
and distribution specifics, and ensure templating works correctly.