Resource code to read IWAD/PWAD files

Also, added UpdateWindow to the toplevel module so that we can refresh
the window from within the game loop itself.