Upgrade API support

Closes #1040
Add shards metadata to Upgrade response
Merge pull request #1118 from elasticsearch/feature/upgrade-api

Upgrade API support