Change to make cxtmenu work on edges

Set position for context menu from node location or event location depending on whether selector is "node" or "edge", respectively.  Also removed rh and rw which were not used (except for rs, which was immediately overwritten - also removed).