Swagger UI: Run dos2unix before changes

The Swagger UI index.html is created with dos formatting, this casues
warning when comitting on git. Clear the file with dos2unix before
changes.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Swager-UI: A swagger bug when missing slash at end of URL

When a url is used without a trailing slah the swagger-ui javascript
fails. This interfere with the shorten url matching: /ui

To fix that, if the current url is /ui it will be replaced by /ui/

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Swagger-UI: Index should point to OSv json files

The index.html holds a reference to the api json files. It should point
to the location on host. To do that it should use parameter for the host
name.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>