secure-cookies: Allow to use secure HTTPS cookies (Django setting)

Cf https://docs.djangoproject.com/en/1.4/ref/settings/#std:setting-SESSION_COOKIE_SECURE
add paver test for bok-choy default command.
Added instructor persmission to _has_access_error_desc() in courseware.access.

TNL-208
TE-468 JS test: Use the correct array for validating onSeek logs

This particular test is failing in Solano workers; there the log
is written in a different order, which was causing objects not to
be found.
Convert unicode emails to byte strings for CSV grade reports
Explain query counts
Fix trivial excesses (2 splits configured & don't fetch courses if there are none)
LMS-11220, LMS-11391, LMS-11390
enable auto-capturing of hars in bok-choy tests
Remove unicode conversion of email since it should always be unicode
add promise to get around race condition in discussion bok-choy test
Merge pull request #5197 from edx/reruns/count_queries

Explain query counts
Ensure deleting a direct only removes it from published
as well as draft
LMS-11395
Updating active_versions should not send old and new
but just use old to get query info.
LMS-11396
Merge pull request #5201 from edx/split/lms-11395

Split/lms 11395
Merge pull request #5203 from Stanford-Online/kluo/fix-unicode-email

Convert unicode emails to byte strings for CSV grade reports
Quick add for Wendy & Anant post webinar
Merge pull request #5225 from edx/ahodges/doc/glossary_adds

Ahodges/doc/glossary adds
Merge pull request #5200 from edx/split/lms-11396

Updating active_versions should not send old and new
Use new bok_choy file paths in paver examples.
Updated Files & Uploads template help

To include size warning of 10 MB.  Also updated styling on existing learn more
links
only redirect to dashboard if user has course enrollments, otherwise remain on the course catalog page (aka homepage or root)

update lettuce test to match new expected behavior

add Jason's feedback

only apply new redirect logic for microsites

switch to use a feature flag to determine whether to support redirect behavior