Major refactoring - moved to "generated" model instead of reflection. Added bi-directional references. Removed all stuff that will complicate the code. Moved AModelRegistry to a standalone package. Added metamodels to ModelRegistry. Also, containment now sets _endpoints.