Caijim/emaillist

Backend+Frontend code for Email List tool on instructor dashboard page (under membership tab)

A few things:
1) Javascript is not clean. Any pointers would be greatly and graciously appreciated
2) In the urls file, I had to double up on some urls like the following just so I could call reverse(..) on them (see instructor_dashboard.py) so I could use the parameterized version in js. If I don't add the non-param'd version the page doesn't load. What is the way around this?

url(r'^get_single_query/(?P<inclusion>\S{2,3})/(?P<queryType>(Section|Problem))/(?P<stateType>\S+)/(?P<stateId>\S+)$', 'instructor.views.api.get_single_query', name="get_single_query"),
(r'^get_single_query',
  'instructor.views.api.get_single_query', name="get_single_query")


Thanks, and sorry for the huge changelist

tagging @jbau @stvstnfrd @kluo  for reviewing

To check, how difficult would it be to extract this Coffeescript into
vanilla Javascript? Given Coffeescript's deprecation in our codebase,
it'd be nice to avoid adding a large block, though it does look like
you're doing some integration with existing code.