Cleanup.
Refactor entities.save(), relations.save() interface and move 
identification code to loader. Refs #7, #8.