Improved the pathfinder's performances

- the paths are now created using angular check
- improved the position synchronization
- added a client side connection lost handler