Is the expansion accelerating or Decelerating? According to Hubble's Law, the farther a galaxy is, the farther it is moving away. But do we take into account the fact that we are actually looking in the past?

For example, there are two galaxies A and B at distance of 5 and 10 billion years respectively. Now, when we observe A we are looking at how it was moving 5 billion years ago. The same applies for B. So, now we conclude that 5 billion years ago space was expanding at a slower rate while it was expanding comparatively faster 10 billion years ago. What's wrong with this conclusion?
The light we see now is not a direct indication of how the galaxy was moving at the time the light was emitted. In the cosmological frame, the galaxies aren't moving (on average, at least); rather, space between them is expanding. The rate at which it is expanding is the Hubble parameter.

If cosmic expansion is homogeneous and isotropic, then all distances on the cosmological scale should be affected in the same manner, proportionally, unless other forces are involved. Thus the distance between some galaxy and us is affected in the same proportion as the wavelength of the light:
$$\frac{D_\text{now}}{D_\text{then}} = \frac{\lambda_\text{now}}{\lambda_\text{then}}\text{.}$$
The light we see now is a direct indication of the scale factor, i.e. by what factor the distance has grown since the time of emission. We can also consider distance $D$ as a function of cosmological time $t$ and define a recession velocity as the rate at which it is changing:
$$v_\text{r} \equiv \frac{\mathrm{d}D}{\mathrm{d}t} = \underbrace{\left[{\dot{D}}/{D}\right]}_{H(t)}D\text{.}$$ 
Therefore, the recession velocity now is given by the Hubble parameter $H(t)$ now.