Add preliminary Tglx1 lib

The library doesn't yet work, mainly because of some structures, but I thought I'd submit it to review anyway, as it is mostly finished.