Complete rewrite. Preliminary support for multifile, more efficient rendering.
removed accidental adds of *pyc files.