Lots of graphics foundation-y stuff.
Add Debug config stuff.
Remove TODO