LocalDispatcher fixes

This fixes some command line quoting issues, and ignores "ui:" prefixed context variables.