Clean up root directory a bit
Convert to (mostly) non-recursive automake
Fix deprecation warnings
Convert to new Glib thread API