Replace 'render_for_text data' with 'render :text => data'

render_for_text no longer exists in Rails 3.

Fixes #955
Remove erroneous test name
When extracting attachments for an incoming message and getting the body of the main part in order to look for uuencoded text, make sure that we're getting that main part from the reparsed attachments, and not getting an obsolete attachment. Fixes #958.
Merge branch 'loop-in-cached-attachment-recreation' into rails-3-develop
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Merge branch 'rails-3-develop' into release/0.11
Remove the (we think) now unneeded will_paginate customization

We believe that this customization is no longer needed, and
in any case would need to be rewritten for will_paginate 3.0.4.
If any pagination bugs do arise, a test should be added that
reproduces that problem, since currently the tests pass without
this extension.
Merge branch 'rails-3-develop' into release/0.11

Merge in some updates to the 0.11 release, discovered on further
testing on a development server with the full data set.
Merge branch 'release/0.11' into wdtk-upgrade-test

Include some bug fixes for release 0.11 for further testing on
the development server.