Improving video download page HTML validation

* Moving javascript to section.html
* putting </ul> in proper place
* Cleaning some unused imports from the view
Merge branch 'master' of github.com:Stanford-Online/class2go
Merge branch 'master' into jrbl-1331-template-tag-matching

Conflicts:
	main/courses/videos/views.py
	main/templates/videos/ready/video_list_item.html
Merge branch 'master' of github.com:Stanford-Online/class2go
Merge branch 'master' of https://github.com/Stanford-Online/class2go into jrbl-1331-template-tag-matching

Conflicts:
	main/courses/videos/views.py
Improvements to video download counting

* Moved video download counting javascript up a few layers in the
  template hierarchy so it only gets sent to the user once.
* Renamed from record_download to record_video_download since it's quite
  specific
* Adds a few unit tests
Added new Exam fields to publishing functions (#1426)
course_materials: update date display

* Refactoring course_materials to do the same work with less code
* Update future date display for live_datetime of course materials to
  ISO-8601 date format (i.e., YYYY-mm-DD)
Make section views more DRY and add zebra stripes

* Moves course-item LI into section.html
* Uses {% cycle %} to tag alternate rows of section.html items so they
  get alternating light and dark zebra stripes
* Adds thin gray line under section heading to create a visual break
  between sections
Merge branch 'master' of http://github.com/Stanford-Online/class2go into dca_new_working
create superuser only after syncdb and migrate
Minor commit for adding JSON data

	modified:   courses/exams/views.py
	modified:   templates/exams/view_exam.html
course_materials: update date display

* Refactoring course_materials to do the same work with less code
* Update future date display for live_datetime of course materials to
  ISO-8601 date format (i.e., YYYY-mm-DD)
Make section views more DRY and add zebra stripes

* Moves course-item LI into section.html
* Uses {% cycle %} to tag alternate rows of section.html items so they
  get alternating light and dark zebra stripes
* Adds thin gray line under section heading to create a visual break
  between sections

Conflicts:

    main/templates/content_group_buttons.html
	main/templates/content_sections/ready/section.html
	main/templates/exams/ready/exam_list_item.html
	main/templates/videos/ready/video_list_item.html
Limited ContentGroup admin. support & styling

* Support for parent relationship assignment on creation of new static
  pages (instances of models.AdditionalPage) and file uploads (instances
  of models.File)

* ContentSection.getChildren enhanced w/ greater flexibility
** Supports making sorting optional
** Supports optionally returning intermediate data structure
* ContentSection.countChildren corrected to actually work

* live_datetime calculation in get_course_materials updated to use
  ISO-8601 dates and runtime optimized

* Added ContentGroup.get_type, which runs in O(n), where n is the set of
  supported groupable types. TODO: make this a column on ContentGroup

* Added ContentGroupGroupFactory to provide a variety of utility methods
  to make creation and management of ContentGroup relationships more
  convenient. TODO: consider folding this functionality into
  ContentGroup

* Two API endpoints created to support querying object relationships via
  AJAX calls:
  * contentsection/get_children retrieves a ContentSection's child items
  * contentsection/get_children_as_contentgroup_parents retrieves a
    ContentSection's child items, but only those which are not
    themselves ContentGroup child items

* Rationalization of imports in every touched file
* Conversion to Unix line endings in every touched file

Conflicts:

	main/c2g/models.py
	main/courses/additional_pages/views.py
	main/courses/course_materials.py
	main/courses/files/actions.py
Completion of File upload parent assignment

* closes #1291
* Completion and bugfixes to File upload parent assignment
* Changes to materials page layout and button stylings

Conflicts:

	main/courses/course_materials.py
	main/templates/additional_pages/ready/additional_page_list_item.html
	main/templates/files/ready/file_list_item.html
	main/templates/problemsets/ready/problemset_list_item.html
	main/templates/videos/ready/video_list_item.html
Adding scaffolding for future unit testing
Merge pull request #1444 from Stanford-Online/dca_new_working

New exam fields added to exam publishing (#1426)
Merge pull request #1447 from JayeshSirInstitute/jayeshsir

issue 1432 : create superuser only after syncdb and migrate 
Pulling in master to get David's publication model stuff

Merge branch 'master' of https://github.com/Stanford-Online/class2go into wescott-master-exercise-work