Original Import. The old version was held in an SVN repository as a sub-directory of a PHP project. There's a lot of problems with this code and there's a couple things that don't compile at the moment, but I want to import as it is.