Added Entity.dispose and Engine.off functions for cleaning up unused objects