first draft of sdl viewer tool.
looks like we need more memcpy()s.
more test skeletons.