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

Fixes #2479.
allow undercores in path variables
Add an rtype attribute to all endpoints
- Updated README.md file: Nine is now using AngularJS and not Dojo.
Merge pull request #703 from ewongbb/readmeupdate

- Updated README.md file: Nine is now using AngularJS and not Dojo.
Merge branch 'bug2479' into nine
Handle both json and simplejson in unit tests

The simplejson and the json modules differ in the way they handle
trailing whitespace when indent is set.

  >>> json.dumps({"foo":[1,2]}, indent=2)
  '{\n  "foo": [\n    1, \n    2\n  ]\n}'

  >>> simplejson.dumps({"foo":[1,2]}, indent=2)
  '{\n  "foo": [\n    1,\n    2\n  ]\n}'

With this change, the unit tests use the same json implementation as the
tested code instead of hardcoding the expected json string in this
situation.
Merge branch 'topic/unit-simplejson_vs_json' of git://github.com/olof/buildbot into nine
fix pyflakes