sm: add create_conn

This function creates a connection and will be used by connect()
and when generating a CCI_EVENT_CONNECT_REQUEST.

It allocates and initializes structures, gets an ID, stores the
connection in the sep->conns tree.