initial bootstrap

Adds code reused from other stuff to bootstrap SDL and stuff like that,
and runnable code woo