Refactor client instantiate to take uri, remove connect method