A few more clean-ups to trac/web/api.py.
Authored by: cboos 2010-03-21
Parent: [r9381]
Child: [r9383]