Added Metrics option and saving of preferences

And also correctly copies the connection type (green/blue) of a path.