initial code

The original code, written in the span of a couple of weeks. Not
entirely finished (dropped due to lack of interest in the project), and
not at all secure. MySQL files not included as I never copied them off
the server I was using.