Fixed #19: Added a dependency injection-friendly system for instantiating entity classes.