I think your definition of the mean value of $f(x)$ over an interval $ab$, $\frac{\int^b_a|f(x)|dx}{b-a}$, is just as valid as $f(x)_{rms}=\sqrt{\frac{\int^b_a (f(x))^2dx}{b-a}}$. The values of both definitions though are different and have different physical units. For an AC-circuit only the second definition gives the right value and unit for power consumption.
For the current $i(t)$ we can write:
$$i(t)_{rms}=\sqrt{\frac{\int_0^T (i(t))^2dt}{T}},$$
giving
$${i(t)_{rms}}^2={\frac{\int_0^T (i(t))^2dt}{T}}$$
Now $$P(t)=R{i(t)}^2,$$
so $$P(t)_{rms}=R({i(t)_{rms}})^2,$$
which means The RMS-value of $P(t)={P(t)}_{rms}$ is equal to $R$ times the the squared value of The RMS-value of $i(t)$ squared, which is equal to
$$P(t)_{rms}=\sqrt{\frac{\int_0^T (P(t))^2dt}{T}}$$
The RMS-value is most convenient for periodic functions.