swagger: honour X-Forwarded-Proto header

Improve the algorithm building `baseUrl` to honour `X-Forwarded-Proto`
header when it is present.
Merge pull request #69 from strongloop/feature/honour-x-forwarded-headers

swagger: honour X-Forwarded-Proto header