Add missing dependencies

Seems that I messed up composer.json, and http-foundation wasn't listed.
Move DB connection code to its own class

The new CLI needs this connection, so following the DRY principle we are moving
DBAL initialization code to a new class.
Remove require restrictions on configuration files
Replace agendavcli with the doctrine CLI tool

Still not functional, but at least it connects to the database.