Well, 9 years later, this answer is going to utilize an approach via a contour integral. Denote
$$I = \int_{-1}^{1} \frac{1}{x} \sqrt{\frac{1+x}{1-x}} \ln \left(\frac{2x^2+2x+1}{2x^2-2x+1}\right) \,\mathrm{d}x \in \mathbb{R}$$
our integral of interest.
Complex function
Let
$$f(z) = \frac{1}{z} \sqrt{\frac{z+1}{z-1}}\left(\ln \left({\frac{2z+1+i}{2z-1+i}}\right) + \frac{\pi i}{2}\right),$$
where $\sqrt{w}$ and $\ln w$ are chosen such that they have a branch cut at the negative real axis (the so-called principal branches) in $w$-plane, that is $\arg w \in \left(-\pi,\pi\right]$. We denote
$$h(z) = \frac{1}{z} \sqrt{\frac{z+1}{z-1}}, \qquad g(z) = \ln \left({\frac{2z+1+i}{2z-1+i}}\right) + \frac{\pi i}{2}$$
so $f(z) = h(z)g(z)$. To find the branch cuts of $f(z)$, we need to find which points on the $z$-plane are mapped onto the negative real axis in $w$. That is to solve
$$ \boxed{\sqrt{w}}_{B.C.}:\quad w=\frac{z+1}{z-1} = -t,\qquad t>0; \qquad\qquad \boxed{\ln w}_{B.C.}:\quad w=\frac{2z+1+i}{2z-1+i} = -t, \qquad t>0.$$
After simple manipulations, we arrive at
$$ \boxed{h(z)}_{B.C.}:\quad z=\frac{t-1}{t+1} \in (-1,1); \qquad\qquad \boxed{g(z)}_{B.C.}:\quad z = \frac{t-1}{2(t+1)} - \frac{i}{2} \in \left(\frac{-1-i}{2},\frac{1-i}{2}\right).$$
where $(z_1,z_2)$ means here a line segment from $z_1$ to $z_2$ for any in general complex $z_1,z_2$.
Poles and residues
At $z\to \infty$, we have $f(z) = \frac{\pi i}{2z} + O(1/z^2)$, a simple pole. So
$$\operatorname{Res}_\infty f(z) = - \lim_{z\to\infty} z f(z) = - \frac{\pi i}{2}.$$
Note that there is no pole at $z=0$ since
$$\frac{2z+1+i}{2z-1+i} = -i-2iz+O(z^2),$$
so
$$g(z) = -\frac{\pi i}{2}+2z + \frac{\pi i}{2} +O(z^2) = 2z +O(z^2),$$
which cancels the simple pole of $h(z)$ at $0 \pm 0i$.
Branch jumps
- $(-1,1):$ Let $t \in (-1,1)$. Since the complex square root function changes sign on the branch discontinuity, $h(t+i0) = -h(t-i0)$ and so $f(t+i0) = -f(t-i0)$.
- $\left(\frac{-1-i}{2},\frac{1-i}{2}\right):$ Let $t \in (-1/2,1/2)$. For $z = t - 1/2 i \pm i0,$
$$ \frac{2z+1+i}{2z-1+i} \bigg{|}_{t - i/2 \pm i0} = -r + \left(\frac{2z+1+i}{2z-1+i}\right)' \bigg{|}_{t - i/2} (\pm i0) = - r - \frac{4}{(1-2t)^2} (\pm i 0) = -r \mp i0.$$
where $-r$ is some negative number (branch cut mapped on negative numbers $-r$). Hence,
$$g(t+i0) - g(t-i0) = \ln(-r-i0)-\ln(-r+i0) = -2\pi i.$$
Residue theorem
We integrate $f(z)$ along contour $C$ defined in Figure below. The contour is also split as $C = C_1 + \ldots + C_6$.
According to the Residue theorem,
$$\oint_C f(z) \, \mathrm{d}x = - 2\pi i \operatorname{Res}_\infty f(z) = -\pi^2.$$
On the other hand,
$$ \oint_C f(z) \, \mathrm{d}z = \sum_{k=1}^6 \int_{C_k} f(z) \, \mathrm{d}z. \tag{1}$$
Parametrisation
For $C_1, \ldots C_6$, we have the following parametrisation:
- $ \circleddash C_1: z = t + i0, t\in (-1,1), dz = dt$; Since $h(z)$ has a branch cut here, $f(t+i0) = h(t+i0)g(t)$. To obtain $h(t+i0)$, we first compute
$$ \frac{z+1}{z-1}\bigg{|}_{t+i0} = \frac{z+1}{z-1}\bigg{|}_{t}+\left(\frac{z+1}{z-1}\right)'\bigg{|}_{t} i0 = -\frac{1+t}{1-t} - \frac{2}{(1-t)^2}i0 = -\frac{1+t}{1-t}-i0,$$
so $h(t+i0) = -\frac{i}{t} \sqrt{\frac{1+t}{1-t}}$. For $g(z)$, we can write
$$ g(t) = \ln\left|\frac{2t+1+i}{2t-1+i}\right| + \arg\left(\frac{2t+1+i}{2t-1+i}\right) + \frac{\pi i}{2} = \frac12 \ln\left(\frac{2t^2+2t+1}{2t^2-2t+1}\right) + i \xi(t)$$
for some real function $\xi(t)$ which vanishes at $t=0$. Although we don't need this function, we express it anyway for completeness: Since $-\pi < \arg(2t+1+i)-\arg (2t-1+i) < \pi$, we have $\arg\left(\frac{2t+1+i}{2t-1+i}\right) = \arg(2t+1+i)-\arg (2t-1+i)$ and so
$$ \xi(t) = \arctan\left(2t-1\right)-\arctan\left(2t+1\right) + \frac{\pi}{2}.$$
Overall,
$$ f(t+i0) = - \frac{i}{t}\sqrt{\frac{1+t}{1-t}} \left( \frac12 \ln\left(\frac{2t^2+2t+1}{2t^2-2t+1}\right) + i \xi(t) \right) .$$
Hence
$$ \int_{C_1} f(z) \, \mathrm{d}z = -\int_{\circleddash C_1} f(z) \, \mathrm{d}z = - \int_{-1}^{1} f(t+i0) \, \mathrm{d}t = \frac{i}{2}I
- I_0,$$
where we denote
$$I_0 = \int_{-1}^{1} \frac{\xi(t)}{t}\sqrt{\frac{1+t}{1-t}} \, \mathrm{d}t \in \mathbb{R}.$$
- $C_2$: Using knowledge of branchjumps,
$$\int_{C_2} f(z) \, \mathrm{d}z = -\int_{\circleddash C_2} f(z) \, \mathrm{d}z = -\int_{C_1} (-f(z)) \, \mathrm{d}z = \frac{i}{2}I - I_0.$$
- $C_3 = \circleddash C_6$, so
$$\int_{C_3} f(z) \, \mathrm{d}z + \int_{C_6} f(z) \, \mathrm{d}z = \int_{C_3} f(z) \, \mathrm{d}z - \int_{\circleddash C_6} f(z) \, \mathrm{d}z = 0$$
- $C_4$: Using knowledge of branchjumps,
$$\int_{C_4} f(z) \, \mathrm{d}z = -\int_{\circleddash C_4} h(z)g(z) \, \mathrm{d}z = -\int_{C_5} h(z)(g(z)-2\pi i) \, \mathrm{d}z = -\int_{C_5} f(z) \, \mathrm{d}z + 2\pi i\int_{C_5} h(z) \, \mathrm{d}z.$$
Comparison & Antiderivative
Comparing the terms, that is by using $(1)$, we get
$$-\pi^2 = iI - 2I_0 +2\pi i \int_{C_5} h(z) \, \mathrm{d}z.\tag{2}$$
We now solve the remaining integral $\int_{C_5} h(z) \, \mathrm{d}z$. For brevity, we denote $a = \frac{-1-i}{2}, b =\frac{1-i}{2}$, so $C_5 = (a,b)$. Notice $h(z)$ is now holomorphic in the vicinity of $C_5$. If we find its antiderivative $H(z)$ also holomorphic there, then
$$ \int_{C_5} h(z) \, \mathrm{d}z = H(b) - H(a).\tag{3}$$
This task is rather simple. First, we start by integrating $h(z)$ as if it was a real function. For $x>1$, we have by substitution $(x-1)/(x+1)=u^2$,
$$\int h(x) \, \mathrm{d}x = \int \frac{1}{x}\sqrt{\frac{x+1}{x-1}} \, \mathrm{d}x = \int \frac{4u^2}{u^4-1} \, \mathrm{d}u = 2\operatorname{argcoth}\left(\sqrt{\frac{x+1}{x-1}}\right) + 2\operatorname{arccot}\left(\sqrt{\frac{x+1}{x-1}}\right).$$
Hence, a suitable antiderivative in the complex plane is the following:
$$H(z) = \ln \left(\frac{\sqrt{\frac{z+1}{z-1}}+1}{\sqrt{\frac{z+1}{z-1}}-1}\right) - i\ln \left(\frac{\sqrt{\frac{z+1}{z-1}}+i}{\sqrt{\frac{z+1}{z-1}}-i}\right).$$
We know the branch of $H(z)$ due to $\nu = \sqrt{\frac{z+1}{z-1}}$ is $z \in (-1,1)$. Assuming the principal branches, we now check where are the other possible branches of $H(z)$ due to $\ln$'s.
$$ \boxed{\ln{w}}_{B.C.}:\quad w=\frac{\nu+1}{\nu-1} = -t,\qquad t>0; \qquad\qquad \boxed{\ln w}_{B.C.}:\quad w=\frac{\nu+i}{\nu-i} = -t, \qquad t>0.$$
$$ \boxed{w(\nu)}_{B.C.}:\quad \nu = \frac{t-1}{t+1} = \in (-1,1) ; \qquad\qquad \boxed{w(\nu)}_{B.C.}:\quad \nu=i\frac{t-1}{t+1} \in (-i,i).$$
$$ \boxed{H(z)}_{B.C.}:\quad z = \frac{\nu^2+1}{\nu^2-1} \in (-\infty,0).$$
Hence, the B.C. of $H(z)$ lies at $(-\infty,1)$, safely away from $C_5$. Substituting $(3)$ into $(2)$, we get the value of $I$. And as a bonus, also $I_0$. For $I$,
$$ I = 2\pi\operatorname{Re} (H(a) - H(b)).\tag{4}$$
Substituing $a$ and $b$ into $\frac{z+1}{z-1}$, we get
$$\frac{a+1}{a-1} = -\frac{1}{5} + \frac{2i}{5} = \frac{1}{q^2}e^{2\alpha i}, \qquad \frac{b+1}{b-1}=-1+2i = q^2 e^{2\alpha i}$$
with $q = 5^{1/4}>1$ and $\alpha = \frac{\pi}{2} - \frac{1}{2}\arctan 2$. Note that $\pi/4 < \alpha < \pi/2$, so
$$\sqrt{\frac{a+1}{a-1}} = \frac{1}{q} e^{\alpha i}, \qquad \sqrt{\frac{b+1}{b-1}} = q e^{\alpha i}.$$
In the case of $b$, substituing into $\nu = \sqrt{\frac{z+1}{z-1}}$ and after simple manipulations,
$$\frac{\nu + 1}{\nu - 1} \bigg{|}_{\nu = q e^{\alpha i}} = \frac{q^2-2 i q \sin\alpha-1}{q^2-2 q \cos\alpha+1}, \qquad \frac{\nu + i}{\nu - i} \bigg{|}_{\nu = q e^{\alpha i}} \frac{q^2+2 i q \cos\alpha-1}{q^2-2 q \sin\alpha+1}.$$
Hence, since the denominators are real,
$$H(b) = \ln\left(q^2-2iq\sin\alpha-1\right)-\ln\left(q^2-2q\cos\alpha+1\right)-i\ln\left(q^2+2iq\cos\alpha-1\right)+i \ln\left(q^2-2q\sin\alpha+1\right),$$
expanding the logarithms into real and imaginary part,
$$H(b) = \frac{1}{2} \ln\left(q^4-2 q^2 \cos (2 \alpha )+1\right)+i \arg \left(q^2-2 i q\sin\alpha-1\right)-\ln\left(q^2-2q\cos\alpha+1\right)-\frac{1}{2} i \ln\left(1+2q^2\cos (2 \alpha )+q^4\right)+\arg \left(q^2+2iq\cos\alpha-1\right)+i\ln\left(q^2-2q
\sin\alpha+1\right)$$
Since we are interested only in real part (just $I$),
$$\operatorname{Re} H(b) = \frac{1}{2} \ln\left(q^4-2 q^2 \cos (2 \alpha )+1\right)-\ln\left(q^2-2q\cos\alpha+1\right)+\arg \left(q^2+2iq\cos\alpha-1\right)$$
Similarly for $a$ (change $q$ to $1/q$).
\begin{align*}
\operatorname{Re} H(a) & = \frac{1}{2} \ln\left(\frac{1}{q^4}\!-\!\frac{2}{q^2} \cos (2 \alpha)\!+\!1\right)-\ln\left(\frac{1}{q^2}\!-\!\frac{2}{q}\cos\alpha\!+\!1\right)+\arg \left(\frac{1}{q^2}\!+\!\frac{2i}{q}\cos\alpha\!-\!1\right)\\
&= \frac{1}{2} \ln\left(q^4\!-\!2 q^2 \cos (2 \alpha )\!+\!1\right)-\ln\left(q^2\!-\!2q\cos\alpha\!+\!1\right)+\pi - \arg \left(q^2\!+\!2iq\cos\alpha\!-\!1\right).
\end{align*}
Therefore, we have ourselves the grand finale,
$$I = 4\pi \left(\frac{\pi}{2} - \arg \left(q^2\!+\!2iq\cos\alpha\!-\!1\right)\right) = 4\pi \operatorname{arccot} \frac{2q\cos\alpha}{q^2-1}.$$
To show this result is the same as the ones found already by others, note that
$$\left(\frac{2q\cos\alpha}{q^2-1}\right)^2 = \frac{4q^2\sin^2 \left(\frac{\pi}{2} -\alpha\right)}{(q^2-1)^2} = \frac{4\sqrt5\sin^2 \left(\frac12 \arctan 2\right)}{(\sqrt5-1)^2} = 2\sqrt5\,\frac{1-\frac{1}{\sqrt5}}{(\sqrt5-1)^2} = \frac{1+\sqrt5}{2}.$$