Initial Import

Initial import of old 2003/4ish code from phpfanfiction project
will get a rename, relicense and refactor