miscellaneous fixes to prepare the way for usable metadata

* move port UUID initialization into engine so that it is actually shared across clients
* export jack_server_dir() within libjack