Update index.js

1. I'm not familiar with 'yeoman', so there will be some wrong use of it.
2. Line 7 : change to http, if you don't use https [or change it ad-hoc].
3. Line 12: Function to write a file.
4. Line 23: If you use https and SSL is self-assigne you have to set NODE_TLS_REJECT_UNAUTHORIZED = "0".
5. Line 30 to 360: I think this should be ported to wadl_fetch.js.
6. Line 250: Maybe fetch the xsd-file from WADL or prompt the user to input it.(here I use "/xsd0.xsd" as a constant)
7. Line 383: by adding name: 'url' fixed a little bug with yoeman
8. Line 390: After user input is fetched the generation of the API is done instantly.