REST API: removing deprecated current_user_can from v1.1 endpoints

I'm also adding the v1.1 version of post/restore, which I think was missed when the other post endpoints were created for v1.1.

Merges r109437-wpcom.
REST API: Settings Endpoint: IS_WPCOM not WPCOM.

Merges r104572-wpcom.
REST API: Site Settings: Improve logic for related post settings.

Improve readability of the code, back to @bob logic.
Less calls to Jetpack_Options::update_option()
Only activate/deactivate if jetpack_relatedposts_supported

Merges r104663-wpcom.
REST API: Update errors for settings endpoint

Merges r104713-wpcom.
REST API: Settings endpoint

When loading the theme context (functions.php - so we get CPTS, etc), also load the Jetpack compat files.
Adds tests to test the functionality of getting iS settings (usually stored in the jetpack.php file).

Merges r104920-wpcom.
REST API: Updates me/posts endpoint to use elasticsearch

Merges r104971-wpcom.
REST API: allow settings to have array values

It wasn't warking because trim doesn't work for arrays.

props @nbachiyski

Merges r106750-wpcom.
REST API: Settings Endpoint add Google Analytics

Merges r106751-wpcom.
REST API: Add sharing button settings to site settings endpoint

Includes: "sharing_button_style", "sharing_label", and "sharing_show"

Merges r107856-wpcom.
REST API: Ensure site settings updates only affect desired properties

Resolves unintended updates to unrelated sharing options, and to ensure that only the updated fields are included in the response.

Merges r107866-wpcom.
REST API: Extend site settings endpoint with additional sharing options

Specifically, `disabled_likes`, `disabled_reblogs`, `jetpack_comment_likes_enabled`, and sharing `open_links`

Merges r108275-wpcom.
Merge pull request #1335 from Automattic/merge/settings-endpoints-changes-14-11-26

Merge: Rest API: Settings endpoints changes to 14 11 26