completely new base for CLI scripts

This introduces an abstract base class that command line tools need to
inherit from. It provides a simple framework for registering accepted
command line options and provides commonly needed things like help
output and colored text.

Existing CLI scripts still need to be converted.
converted git tool to new CLI base
wrap help texts to fit typial terminal width
fixed broken wordwrapping
removed superflous argument
converted some more CLI tools, minor CLI class updates
fixed tests
refactored bin/striplangs.php to new CLI interface
refactored bin/wantedpages.php to new CLI interface
CLI: send messages to STDERR
don't unlock based on empty session
refactored dwpage.php to new CLI
code reformat
deprecated the old CLI opts parser
Merge pull request #720 from splitbrain/newcli

Refactored the CLI stuff