prep'ing for mutliple backends; move old main.c ui functions to sdl.c; add templatexcb.c