Screen refreshing and other bug fixes.
Implemented views to Direct3D 9 and moved screen refresh for the Win32
platform into graphics system bridges like xlib, had to be done to stop
screen_refresh from swapping the backbuffer 2x under D3D9. Tested all 3
graphics systems on Win32 and all appear to be working, except Harri's new
OGL3 sprite batching, it is just outputting garbage for me, but it was
doing so before my applied changes. Merge when ready.