Add function isConnectedTo in Node.js
Move function to create new connections from of Node.js (connectTo) to to Graph.js (addConnection)