Do not use sqlite anymore to compute the autoremove
Refactor pkg install with a cleaner solver.

This is the first step to full multirepository support!!!
Reuse jobs->bulk for pkg autoremove
Set direct to false by default
Convering pkg upgrade to new solver
Fix build with gcc
Convert pkg fetch to the new world order
Refactor newer_than_local_pkg function.

Avoid sbuf pasting for comparing options, dependencies, shared libraries
of a local and a remote package.

Minor fix to make gcc happy about unused variable.
switch pkg delete to new world order
pkgdb_query_fetch has already been removed
Cleanup job_pattern to get only one pattern per entry
Remove dead code
No more need to drop temporary tables anymore as we don't use them
Load repositories from ${PREFIX}/etc/pkg/repos/
Remove unused mutex
Add a couple of public fonction to get access to the repository informations
Print in pkg -vv the list of repositories and their status
pkg update is now always multi repository
Always activate multi repos

Rename all remote- into repo- to be consistent with file names
If package not in bulk already, also check in seen