Add PortConnect (not used yet)

Also, do minor cleanup in dragdrop.js.