Moving rect-select mode to its own repository.