Ported layout algorithms, most of context menu handling to current Cytoscape api