Feature/trim connections

This feature trims all unnecessary connections leaving only the best connection. The trim function is called 30 seconds after a node is successfully connected.