merged debug etc back into option parsing for simplicity
spw-errata-clone updates

- support for channel groups
- clones/publishes into all affected channels (if clones of them exist)
NEW SCRIPT: spw-errata-listpkgs

- lists packages provided by each given erratum, grouped by channel
- handy as many errata contain packages from more than one channel.
Removed debug print statments.
Major refactoring of spw-channel-patchsummary

- now does both synopsis and package version comparisons when
  called with --latest
- only loops over a list of errata once
- removed unnecessary repeated API calls
- errata are no longer repeated per-channel.
- each erratum can have multiple target channels associated with it.
spw-channel-patchsummary updates

- moved output options into a separate optiongroup
- added -j/--json output for debug/future use
- added --report for a pretty-printed report.
stderr updates to spw-channel-patchsummary

- debug/info output now goes to stderr, to allow clean redirection
Multiple updates to spw-package-listerrata

- fnmatch globbing on 'name' as lucene appears to select anything
  containing our --name selection
- now displays RH errata if there are no clones providing the chosen
  packages
- channel selection now actually works properly for errata filtering
output and reporting updates to spw-channel-patchsummary

- legible header with filter information now part of report
- stderr debug output now cleaner
- report now sorted on priority and advisory to group (for example)
  critical or important advisories together
Fixes key errors in errata publishing
Added option parsing extras for group support
fixed end date calculation to include the whole of the specified day
- e.g. 2014-04-11 23:59:59
  rather than
  2014-04-11 00:00:00
Complete refactoring of spw-channel-sync-by-errata

- now supports channel groupings (from YAML file)
  and can sync an entire package group
- new dependency on PyYAML to support this
- reporting and output improved
- test and report mode now separated
- package_report and errata_report removed
Major updates to spw-errata-details

- additional 'summary' options
- can list applicable channels (clones)
- can list providing channels
- can list packages provided
Kickstart import/export scripts now set post/pre script logging
NEW SCRIPT: spw-channel-export.

- exports a software channel to JSON
- includes packages and errata
- supports recursion
- currently no support for admin users or orgs
BUGFIX: typo in spw-channel-sync-by-errata
ENHANCEMENT: tidied up output in spw-errata-clone
complete reworking of spw-channel-sync-by-errata

- full support for channel groups
- improved abstracted logic for determining updates
improved logid for package globbing in spw-channel-sync