Bring tests from wpcom and refactor for Jetpack.

Had to pull out the hashtags test because they're strictly disabled
in this code. Also fixed audio and wpvideo ids that weren't being
included in extract.
Add hulu extraction again. Thanks @gibrown!
Expose connected user data in wp.getOptions

To help the mobile apps help the user figure out which wp.com account
they're connected to, include user ID, username, and email in
wp.getOptions.

Also includes number of sites so the app can decide if it should suggest
Jetpack Manage.
Respect options parameter

wp.getOptions supports a parameter to specify the list of options to
return.

Respect that parameter by adding our options to blog_options instead of
filtering the result of wp_getOptions.
Sync all options when upgrading Jetpack
Merge pull request #1372 from Automattic/update/sync-all-options-when-upgrading

Sync all options when upgrading Jetpack
Fix the jetpack_site_icon_url to return a square when requesting the 512 image
Rebase, Only sync main_network_site when we update the plugin

Currently plugin_upgrade runs everytime,
So we use the general sync every option to ensure that
main_network_site gets pushed to .com
Merge pull request #1373 from Automattic/network-site-url-sync

Sync: Network site url sync
Restore endif;

See
https://github.com/Automattic/jetpack/commit/c0849d17393f052836d62c3773f
a8ae70c37f5c7
Version bumps to 3.3-beta1
Sharing: add new filter for option to turn off sharing counts

The existing `sharing_js` filter disables all the javascript,
thus breaking the email sharing button
Sharing: remove extra underscore in variable name
Site Icon: Make sure that we don't pass the path to the file name, Needs testing on windows server
API: Plugins Update: Make sure the plugin doesn't get deactivated.
Site Icon: Make sure that we don't pass the path to the file name

See dfe7bf17b0f8186fa291e409e08e93237a90b5e7
Plugin Modify Endpoint: clear cache before updating

We were clearing the plugin cache within the foreach loop, which was optimal
for updating multiple plugins at once. But we've decided on calypso that it
is better to update one plugin per api call - it gives us better error reporting
and progress reporting. Thus we should clear the plugin cache before
starting the update process.
Merge pull request #1379 from Automattic/fix/bulk-plugin-updates

Plugin Modify Endpoint: clear cache before updating
Site Icon: Update to also generate the metadata properly again

The previous fix broke the wp_generate_attachment_metadata step since
it passed in the wrong file path.
Jetpack: Check method_exists before calling a function in Jetpack.

Merges r109489-wpcom.