Restructure + Develop logic

Restructured EnvironmentController into EntityController with more
atomic methods;
Rewrote TypeToEntityTypeMap;
Reduced EntityModel;
Added new Consistency-based action in PerformController;