Adapt to the new names / directory. Big commit, but mostly just very boring renaming.
Update the dependencies.
De-clutter the source directories a bit. Ensure tests build with meson, and remove from autotools in a few places (no need to do things twice).