Make compiling with glib work.
Add entity hierarchy.
Add test for entity hierarchy.
Merge pull request #3 from gjb7/feature/entity-hierarchy

Entity hierarchy