Restructing of connector detection.
Some groundwork done.
Initial tests for utils.