CB-6869 medic.json file not created for wp8 and windows8 platforms

Adds code to create medic.json for windows8 and wp8
Fixes couchDB external host setup, when undefined in medic.json
This fixes [CB-6869](https://issues.apache.org/jira/browse/CB-6869)