Bugfix curve

1. Creation of relations run before moving grids.
1. Position of grids is measured and cached when relation is created.
1. Redraw curves of relations when grids moves, but used position of girds is cached previous.

Moving relations logic is provided by the jsPlumb and not use the cached position of girds.