Added support for connection areas outside parent boxes.

I will still do some more testing...
Merge branch 'master' into autorouter_port
Fixed the removing nonexistent port problem.