ObjectManager implemented.

Object manager takes care of storing pips and links. Adding a link causes its endpoints to be added as well.