Adds support for entities/relations, and major refactoring of compiler
Adds tests for given types
Adds test for entities
Adds tests for relations