Use global vars for common options.
Move existing globals.
Rework query_yesno.
Rework all tools to use globals.
Merge branch 'globals-rework'