prov/psm: remove FI_EVENT from counter binding flag

Counters should always count. The FI_EVENT (FI_COMPLETION) flag
only affects CQ.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: keep track the info of active endpoints in domain

The provider supports at most one endpoint per API set. This change
allows (1) close an endpoint and open another with similar or less
API sets; (2) locate the endpoint at the RMA target side in order to
update the counters with REMOTE_READ/REMOTE_WRITE flag. Previously
the RMA target can only identify the domain (or the PSM endpoint)
and such update can only be performed on countered bound to the MR.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: support binding counters to ep to track RMA target access

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: only update MR bound CQ/CNTR when the memory is written

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge branch 'master' of ssh://github.com/ofiwg/libfabric
Merge pull request #337 from j-xiong/master

prov/psm: counter and cq updates -- FI_EVENT flag, rma target, etc