Add unit/histfig relationship types
Add temporary ID values, used between save/load for specific refs
Merge branch 'master' of git://github.com/angavrilov/df-structures
Add more fields involved in unit logic.