Add support for 3.9's handling of symlinked plugins

This defines the `$wp_plugin_paths` global array and adds calls to `wp_register_plugin_realpath()` if the function exists.

This pull request is related to wp-cli/wp-cli#1015