Added resolution of endpoint policy and creation of endpoint registry
entries.
Ensure that locks are held when we signal condition variables
Some minor exception improvements

Change-Id: I86f0c114c482269e8d524119566596296b4c50bc
Signed-off-by: Rob Adams <readams@readams.net>
Merge "Added resolution of endpoint policy and creation of endpoint registry entries. Ensure that locks are held when we signal condition variables Some minor exception improvements"