Use Index type for atom/bond ids.

Also just replaced the ids held in the bond centric tool with
persistent refs during the refactor.

Change-Id: Ib73281ab30463bd6303faa795492c4bd36dd02d9
Merge topic 'id-type' into master

ecc32cb7 Use Index type for atom/bond ids.