pkgdb: The grand rewrite

Work started in January 2013. Main feature: JSON blobs split into smaller parts.

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23037 d3b55034-1cff-0310-a425-aefe953e1e90
pkgdb: User username and password for the rel app

The releases app requires user authentication.

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23038 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Prepare namedtuples with symbol info

This should be unified under LazyElfinfo.

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23039 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Authenticate from build hosts

When running on the build host, checkpkg needs to reach to the login host to
get the credentials.

It's ugly, but it works for now.

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23040 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Use a default value for retries

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23041 d3b55034-1cff-0310-a425-aefe953e1e90
mGAR v2: Set PYTHONPATH based on BUILDTREE

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23042 d3b55034-1cff-0310-a425-aefe953e1e90
checkpkg: Update references to data structures

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23048 d3b55034-1cff-0310-a425-aefe953e1e90
csw-upload-pkg: Update RESTful URLs in rest.py

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23049 d3b55034-1cff-0310-a425-aefe953e1e90
add ssh options for batch mode, add missing plus sign

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23050 d3b55034-1cff-0310-a425-aefe953e1e90
revert, commited accidentally

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23051 d3b55034-1cff-0310-a425-aefe953e1e90
csw-upload-pkg: Remove the symlink

Add csw-upload-pkg as a wrapper

git-svn-id: http://svn.code.sf.net/p/gar/code/csw/mgar/gar/v2@23053 d3b55034-1cff-0310-a425-aefe953e1e90