Most of the code needed for polling and real time update
Working on converting the layerzoom code to use GDI transformation matrices instead of manually calculated coords.