added schema parameter to createAbsoluteUrl() to force 'http' or 'https'

fixes #1585