implemented inhabit entity.

- Added avatar service
- converted entity manger to factory style creating