so swh.core.logger does not depend on psycopg2.
Related to T1678.
setup: extract db and http related parts in dedicated optional 'extras'
Note that for now, the main requirements.txt still contains all the
dependencies for backward compatibility reasons.
This will have to be fixed once all packages that depends on swh.core
have been updated.
closes T1678.
depends on D1426.