move main loop to a SystemManager class
add pointer handling to SystemManager
Merge branch 'sysmanager'

Conflicts:
	src/main.cpp