Refactor 'booleanOption' helper (for optimist package) into Util.

This makes processing boolean command-line options more user-friendly
by allowing --debug=false and --debug=no in addition to --no-debug.

Change-Id: I264660332becd7f30f21d361de012089b532452e