move D3D into common

abstract out the basics of the Direct3D drawing device into a RRY::D3D
class
fix path building

no more errors when running from a directory that contains a space in
the path
synctest + xehbra

started working on synctest and xehbra utilities
binary pattern generation is working

with many obvious issues and being extremely unstable(!), but still -
working :)