Convert public/index.html from CRLF to LF.

No code changes.
Support custom basePath

Recognize the `basePath` passed to swagger extension and use it in
the webpage to construct the correct `discoveryUrl`.