Add mapping context for mapping port groups or other endpoint context
into an endpoint group.  Further rearrange endpoint model so the right
fields are on the right objects.

Change-Id: Ia44abed0eb854eba8f46e2ae021dd440f4672df6
Signed-off-by: Rob Adams <readams@readams.net>