Add input manager
Add entities.clear() and entity finalizer
Use Entity proxy instead of global objects