Set up 'www' so that it can be built as a Python package.

Fixes #2479.
Merge branch 'bug2479' into nine