New API for connection types

Connection ends (from/to) now have methods getSNode, getPortName and getId.