Move toAbsoluteUrl to IMVU.moduleCommon and add some tests.