Fixed initialization bug.
Fixed custom point addition.

Connections were being refreshed after the custom points were added. This undid the custom point changes. The insertConnection method now handles custom points and the event listener has been removed; if the points are added, the connection will be refreshed and insertConnection will already be called.
Misc code clean up.
Merge branch 'autorouter_port'