Add base class for creating CLI wrappers

Add scap.cli.Application class to handle the boilerplate of argument
processing, configuration loading and error processing when creating
command line scripts.

Convert the mwversionsinuse script to use the new class as an example of
usage.

Change-Id: I1ccf437bc6e424488605250cb25fde6aa0555b56