Add url.resolve for password reset email url

fixes #1604