Remove casting to AbstractEntity

- With new proxies, can't just cast to AbstractEntity all over the place
- Instead use EntityLocal or EntityInternal interfaces.