Support custom basePath

Recognize the `basePath` passed to swagger extension and use it in the webpage to construct the correct `discoveryUrl`.

See also strongloop/strong-remoting#25

/to: @ritch please review
/cc: @raymondfeng @Schoonology