Added the beginning of ConnectionManager. Also added more support for input socket types.