translation and esc

added translation the the global g;
adding nodes and creating edges now work according the translation;
esc key now cancels context menu, selected item - node/edge and cancels
creation of edge;