capi: expose connection ref/unref

Change-Id: I15a8771efa476762289784e18df96fcb38330ecb
cmake: get rid of the file(GLOB ...)

Change-Id: Icb439f2a4a4c291de44b7758b6e496c8ababc13c