manager: if UI_DIR is set, serve UI as well

A little hack to also serve the HTML/JavaScript UI if UI_DIR is set to
point to the ui/ directory. One could possibly do this with a
command-line option instead.
I assume this works because matches are tried in order?