AtD: Use WPLANG as default language in Jetpack.

Merges r97521-wpcom.
* Fixed bug outlined here - https://[private link]#comment-14570
* explode now only divides into 2 separate parts meaning its fine to use colon in text
* Removed using the filter 'the_content' when parsing the post content to get feedback meta data - http://[private link]
* Store parsed meta data in static array to cut back on processing

Merges r97418-wpcom.
* Fixed bug outlined here - https://[private link]#comment-14570
* explode now only divides into 2 separate parts meaning its fine to use colon in text
* Removed using the filter 'the_content' when parsing the post content to get feedback meta data - http://[private link]
* Store parsed meta data in static array to cut back on processing

Merges r97418-wpcom.
Infinite Scroll: use sane priority for `wp_footer` output

Unnecessarily-high priority is unnecessarily high. We only need to ensure our callback fires after Core prints its footer scripts.

See #6588.

Merges r97389-wpcom.
Infinite Scroll: accomodate Core's media player

Before initializing Core's implementation of the 'MediaElement.js', ensure the library itself is loaded. Otherwise, errors result and the media player isn't shown.

Fixes #6588.

Merges r97395-wpcom.
Infinite Scroll: accomodate Core's media player

Before initializing Core's implementation of the 'MediaElement.js', ensure the library itself is loaded. Otherwise, errors result and the media player isn't shown.

Fixes #6588.

Merges r97395-wpcom.
Infinite Scroll: bind `setTimeout` handler properly so we don't need to reference the singleton.

Thanks to @miguelcsf's excellent explanation of 'this' in the context of `setTimeout`, I don't need to reference the IS object directly via the global conext. Huzzah!

See #6588.

Merges r97398-wpcom.
Infinite Scroll: ensure Core's media players are initialized with each IS load, but only initialized once

r97395 added special handling for Core's ''MediaElement.js''-based players needed by incoming post sets. That changeset, however, failed to account for the situation where players are present in the initial set of posts and in subsequent sets of posts loaded by IS. This changeset ensures that all players, regardless of when they're added, are initialized.

''MediaElement.js'' doesn't like it when already-initialized players are re-initialized, which complicated this changeset somewhat. Re-initializing initialized players causes them to break completely, which is why we unbind and rebind the custom initialization.

This changeset also causes IS to pass the response object when triggering its `post-load` event, as suggested by @bradyvercher in https://github.com/Automattic/jetpack/pull/532. Doing so allows the Mejs initialization to bail early when there are no incoming players to initialize.

Fixes #6588.

Merges r97399-wpcom.
Infinite Scroll: remove superfluous whitespace introduced in r97399.

See #6588.

Merges r97400-wpcom.
REST API: launch CORS support

* adds support for whitelisting domains that can be used for cross-origin requests when using the API from javascript
* adds supoort for implicit oauth with an 18hr expiry for the tokens (the time may change later)

see https://[private link]
props justin, mdawaffe, stephdau, apeatling for reviewing the code

Merges r97411-wpcom.
Media Extractor: make use of the featured thumbnail if one is present as part of the images that are passed in as part of the summary. Also fix a small bug with the `extract_images_from_content` function not using its arguments properly.

see https://[private link]

Merges r97074-wpcom.