Merge pull request #160 from editorsnotes/REST-api

Rest api
When checking roles, expect "None" sometimes
Fix issues with NoteSections in indexing & reversion
Errant import in main/tests.py
Remove errant file
Hackily change ES index name when testing

There's a better way to do this but it wouldn't have been easy and it
can be done later. sorry.
Remove breakpoint from a migration

lol
Change check for non-existent perms

Before, "super roles" would short-circuit checking for permissions and
just return True (i.e. the user does have some permission). This
reverses that and only returns True if that permission does in fact
exist.
Change common field name from topics => related_topics

makes the API much more explicit. It eliminates some confusion between
topics and topic nodes, more of which will be coming.
Merge pull request #161 from editorsnotes/update-tests

Update tests
Refactor topic models (bigun)

See 0117 for a good overview.

ProjectTopicContainers (god what was I thinking) => Topic
Topic => LegacyTopic
TopicNodeAssignment => TopicAssignment

Lots of refactoring in any file that referenced anything about topics.
git via https not ssh
change #! line in manage.py
Replace reference to 'topics' => 'related_topics'

(in note view)
Merge pull request #162 from editorsnotes/dev

Major changes just about everywhere, highlights:
* Models are specific to projects; topics are split between project-specific topics and Topic Nodes, which connect those referring to the same entity
* Custom user model
* Project-level permission system
* JSON API with Django Rest Framework backend; interacted with in a Backbone.js-driven frontend
* ElasticSearch for searching (& more)
Merge branch 'master' into change-topic-models

Conflicts:
	editorsnotes/main/views/notes.py
Merge pull request #163 from editorsnotes/change-topic-models

Refactor topic models (bigun)
Take out remaining explicit link in index page
Fix topic template rendering

Pass view args as model objects, not dicts retrieved from elastic
search.
Add breadcrumbs to notes, topics, documents