main: Add MIN_METADATA_PORT for debugging utility

This way I can run it more easily against a webserver which uses
randomly allocated ports like "ostree trivial-httpd".
WIP: support userdata scripts