base entity + entity manager

made a base entity class, added entity management to the framework.
Tested it all and it all works fine :P