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

Fixes #2479.