[Middleware] Insert ParseID* at very beginning.

Remove dependence on existence of ActionDispatch::Static.
Would be helpful to do the same for the other middleware, but perhaps not until it breaks.

Should avoid the errors due to upgrading Core to Rails 3.1.