added updating of scene node origins
added clear functions to resource managers
added template for game states