Step 2: write a wiki engine

The result was CGI::Wiki.

Then we layered the features we needed on top to produce a stand-alone application.