Added handler support

Handlers are the main links between different components and the game
for rendering and updating. Also added support for rendering and
updating priorities.