CXX-395 example args now specify uri instead of port

Note: common code for connecting is explicitly not factored out so that examples are self contained.
Smart pointer?