Initial commit

This is the old 2009 source re-imported into git.
Probably svn revision 1038.