Start adding django rest framework
(Stupidly) filter off our haystack indices

Only supports q={search} for full text search or project_id={x,y} for
searching by project. Filter needs to return a queryset, not a
SearchQuerySet, so this isn't really an optimal permanent solution
but it does the job at the moment.
Add authtoken authentication & project permissions
Update serializers to account for new note sections
Finish serializers & views for note sections
Add some basic tests (don't worry about passing)
Fix typos in api urls.py
Fix serializers and views to pass tests

Change how nested relationships work-- just make hyperlinks in note
sections. As in, when a citation section references a document, don't
embed that document-- just link to it. REST, REST, REST.

Refactor both so that the logic of getting a serializer from a section
type isn't duplicated over and over.

Rearrange stuff, etc.
Split {views,serializers}.py in API into modules

Refactoring to work with new project models & attrs to follow.
Fix file names in /api/views
Start adapting API for new project/model relations

* Re-enabled API in settings.INSTALLED_APPS

* The base API view now sets request.project-- we could take a different
approach, but I think this makes sense.

* I added a new permissions class that gets the necessary permissions
from a view and then checks them against request.user.has_project_perms

* Added pre_save hooks for documents & notes to set objects' projects
when creating them (topics still to come)

* Reconfigured URLs
Adapt API for changed models; get tests to pass

Updated all serializers & views in the API and tweaked the tests a bit
to reflect our new circumstances.
Add zotero data to document serializer in API
Update underscore & citeproc.js, add backbone.js

citeproc => 1.0.466
underscore => 1.4.4
backbone => 1.0.0
Optimize & add to  note serializer

This was not exactly premature-- there were a massive number of joins on
each query because we weren't selecting related documents/notes to note
sections. This should make that constant.

Maybe instead of doing that here, it should be done with custom managers
for each type of note section. I dunno.
Start implementing backbone view for note admin

Rendering works at this point, but not editing.
Enable changing related topics in API

Related topics will be nested in representations of objects and flat in
requests to change them.
Allow (citation) note sections to be updated
Start making a document selector widget
Make sure note sections are ordered properly