Updated the webapp external URI calculation code.
External client URI standardised. Use environment variables to modify.
Spec helper client URI calculation simplified.