Add util functions that will help detect available osg-N.M-* tags

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17681 4e558342-562e-0410-864c-e07659590f8c
Refactor by moving all directly koji-related functions to a KojiHelper
ss.

This will allow better reuse of code in this script.
KojiHelper is a subclass of KojiLibInter to reduce indirection; this let
me remove some globals. It will also allow me to move some methods into
the superclass so osg-build (and other scripts) can use them.

The following were moved into KojiHelper:
get_latest_build
get_build_uri
get_tags
get_tagged_builds
tagged_builds_cache (also replaced direct usage of it with calls to kojihelper.get_tagged_builds())
tagged_packages_cache (also create a 'get_tagged_packages()' method around it)
get_build_in_tag
regen_repos

Also remove some unused functions and refactor to get rid of globals.
Removed:
get_tagged_builds_latest
get_tagged_packages
populate_caches
kwrap
ksession

Also get_valid_routes was renamed to get_valid_osg_routes.

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17682 4e558342-562e-0410-864c-e07659590f8c
Move route stuff into new RouteDiscovery class.

Removed most of get_tag(). Now we're counting on RouteDiscovery to find out
which tags are valid.

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17683 4e558342-562e-0410-864c-e07659590f8c
Add KojiLibInter.login_to_koji

Separating that method from init_koji_session allows us to start with an
unauthenticated session (for querying) and authenticate later.

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17684 4e558342-562e-0410-864c-e07659590f8c
Made VALID_ROUTES not global; also some renames for RouteDiscovery

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17685 4e558342-562e-0410-864c-e07659590f8c
Minor fixes and message/output tweaks

Don't regen repos on dry run
Fix UnboundLocalError with promoted_builds in dry runs

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17686 4e558342-562e-0410-864c-e07659590f8c
Split up write_twiki()

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17687 4e558342-562e-0410-864c-e07659590f8c
Refactor to remove globals

Several functions were moved into Promoter for this.

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17688 4e558342-562e-0410-864c-e07659590f8c
Misc refactor, cleanup and documentation

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17689 4e558342-562e-0410-864c-e07659590f8c
Refactor; make aliases use the old routes by default

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17690 4e558342-562e-0410-864c-e07659590f8c
Add support for el7, el8, etc. to command-line parsing

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17691 4e558342-562e-0410-864c-e07659590f8c
Add description of what routes are to help

git-svn-id: file:///p/vdt/workspace/svn/software/osg-build/trunk@17692 4e558342-562e-0410-864c-e07659590f8c