Initial commit.

Includes patch described by Jason Clark at:
http://jclark.org/weblog/2003/08/16/not1969/