Fixing compile on Ubuntu.

Changed namespace forward declaration of Robot in Linkage.h
Moved struct indexParentIndexPair definition to Robot.h

I also messed around with the .gitignore, but feel free to reject/ignore those changes...