Gh294 refactor renderer add base flex diagram renderer

#294 
Am inteles. Ramane doar cel de-al doilea.