Factor out functions over OPAM universes and the command line query interface

Now in ocamllabs/opamfu.

opamfu 0.1 depends on (tba) opam-lib 1.1.1.