This is really the skeleton of a defunct project from a few years ago. In retrospect, PHP was almost certainly the wrong language to use for this (compared to pretty much any modern web language, but especially because of its scoping issues). I'm leaving it here only to pay homage to the idea of it, which still might have some usefulness.