Refactored Connection.js to cleaner style

Anchor now has an addConnection function