Common helpers and extensions.
Adds a trailing slash to the URI if it does not already have one.
Extracts credentials from user info in URI if set.
Resolves a relative URI using this URI as the base.