Migrate to a mostly rustpkg-driven buildsystem

Unfortunately rustpkg can't yet work with inlined tests, so
the tests are run with the Makefile-driven approach.