Removed shared project to simplify development - all shared code is now included in each project directly. Removed all usages of "external" globals, implemented a service locator. Tidied up entity factory into FactoryManifest classes.