add Surface class to D2D proto

Nearly all the spurious dpi global calls are gone.