Correctly passes the query arg after re-login on 401.

Change-Id: I29d9402732071550925c14231239a71ef1e982da
Merge pull request #26 from midokura/dev/tomohiko/issue656/20130716-v2

Correctly passes the query arg after re-login on 401.