Implements phase two of reports.

1. Adds the ability to edit reports.
2. Removes old tests and adds more comprehensive new ones.
3. Implements report API as documented in our Query API.
4. Mostly implemented as a single page using Backbone (except for the statements list).