Force SSL for YouTube embeds. See #1111
Maintenance file update
Add _real_escape() override method to SharDB class

This ensures that _doing_it_wrong() notices are not thrown when SharDB
initializes before a database connection is established.
DLBlock fixes:

- Declare previously undeclared global variable
- Hook in earlier than template_redirect. There appears to have been a bug
  that prevented downloads from working correctly on certain MIME types when
  the file was delivered as late as template_redirect. Moving to 'init'
  seems to have solved the problem.

See #1113
Set default $site_status when determining blog privacy flags

This is to avoid PHP notices when a group does not have an associated site.
During course clone, ensure that source group admins are pulled up correctly

A change in BP 2.0 turned 'populate_extras' off by default. As a result,
group admins were not being returned with the group object; in turn, no items
were being matched as "belonging to an admin" during the course clone process,
and thus were not being copied over to the clone destination.

See #1112
Add backpat layer for 'bp-docs' settings fetching

See https://github.com/boonebgorges/buddypress-docs/commit/b2c7175b04d760edcd4a7c3a2ab2a4c8877405c4
for more details.

See #1114
Bail from grade comments if no post is found
Use plugins_url() when loading invite-anyone assets

This prevents things from breaking over SSL

See #1123
Update WP to version 4.0

See #1134
Set an 'openlab-visitor' cookie when visiting the site

This is coupled with a rule in .htaccess that forbids posts to wp-comments-post.php
that do not contain the cookie header. Prevents some form of comment spam bots from
DoSing the system
Don't require that "Set up a site" be toggled to do blog domain verification if there is no "set up a site" toggle

This is required to make the validation work correctly for portfolios

See #1029
Ensure that kb-gradebook form requests go to https addresses when appropriate.

Fixes #1161
Merge branch '1.5.x' of github.com:livinglab/openlab into 1.5.x