Refactor connection usage: leave it up to the client

Instead of using global Connection class, allow setting it via Delta and
Set constructor