assign config.connection in connection constructor

to allow config.connection to be avaiable when fetching properties in
the project init, we need to assign config.connection to self at the
beginning of the constructor