This commit adds support for building without UI. If the build tag "litd no_ui" is set the UI will be disabled.