First round of changes for porting renderer to current Cytoscape 3 api