unified resources, added override checks
added static lists of needed objects for context recreation
implemented resource manager functions
added focuscallback to window creation