Fix unmatched parens.
Reorganize options to dx build.

* Add option groups to set apart app-only and applet-only options.
* Organize options in approximately decreasing order of general
  usefulness.