Add get_processable_entities to World

And refactor accordingly
Move some functions out of the core api

logger functions -> api/utils.py
statistics function -> api/stats.py