1. Moved connection core codes from StateMachine into WorkspaceViewModel.
2. Introduced NodeModel.GetPortIndex method for use in Begin/EndConnection methods.
3. Implemented WorkspaceViewModel.BeginConnection/EndConnection/UpdateActiveConnector.