[Core] Refactors Entities.

* Also does some cleanup in the Core\Entity namespace.

(references gh-12)